Link Error Which .lib to include
-
Hi I have a Console C project that has a number of DLL's I got the following error when linking
Quote:
error LNK2001: unresolved external symbol _DllMainCRTStartup@12
I am linking it as 64 bit How would I know what .lib to include by googling seemed it was MSVCRT.LIB but that didn't resolve my problem I remember once using dependency walker to resolve symbols but I think that was looking at .DLL to see what entry points were exposed Thanks
-
Hi I have a Console C project that has a number of DLL's I got the following error when linking
Quote:
error LNK2001: unresolved external symbol _DllMainCRTStartup@12
I am linking it as 64 bit How would I know what .lib to include by googling seemed it was MSVCRT.LIB but that didn't resolve my problem I remember once using dependency walker to resolve symbols but I think that was looking at .DLL to see what entry points were exposed Thanks
-
Hi I have a Console C project that has a number of DLL's I got the following error when linking
Quote:
error LNK2001: unresolved external symbol _DllMainCRTStartup@12
I am linking it as 64 bit How would I know what .lib to include by googling seemed it was MSVCRT.LIB but that didn't resolve my problem I remember once using dependency walker to resolve symbols but I think that was looking at .DLL to see what entry points were exposed Thanks
If you are linking for 64bits the entry point for dll should be _DllMainCRTStartup (undecorated entry point). If you get this error probably there is a error in linker switches because it seems that you are trying to use 64 bits objects in a 32bits link. It is not very clear in which part of your project you're getting the error: compiling the console exe or one of the DLL?
-
Check the documentation for the DLL methods that you are calling. For example Google can find you https://www.google.com/search?q=DllMainCRTStartup[^].
-
Thank you again Richard the problem was in my win32.mak I have amd64 cpu and for some reason win32 it was i386 thus generating @12 ordinal for The DLL startup entry point still trying to finish building