I am trying to build a VC++ project and I get these LINK errors:
2>MyProject_p.obj : error LNK2001: unresolved external symbol _CStdStubBuffer2_Release@4
2>MyProject_p.obj : error LNK2001: unresolved external symbol _NdrStubForwardingFunction@16
2>MyProject_p.obj : error LNK2001: unresolved external symbol _IUnknown_Release_Proxy@4
2>MyProject_p.obj : error LNK2001: unresolved external symbol _IUnknown_AddRef_Proxy@4
2>MyProject_p.obj : error LNK2001: unresolved external symbol _IUnknown_QueryInterface_Proxy@12
2>MyProject_p.obj : error LNK2001: unresolved external symbol _NdrOleFree@4
2>MyProject_p.obj : error LNK2001: unresolved external symbol _NdrOleAllocate@4
It is a huge project, with lots of dependent projects – that I have added in the solution, and they all build properly.
I have performed a search in the entire solution for the above entities, like ‘CStdStubBuffer2’ with no result. I did find them in the MyProject_p.obj among other impossible to read items but I don’t know what to do about that. I looked at similar questions but could not find anything that could help me. Could someone tell me where I can look at to troubleshoot this problem ? Thank you.
From IUnknown_Release_Proxy reference, you need to link with
RpcRT4.lib(the other functions listed are also defined in the same lib).