LNK4003
-
Hi, When I use the APPWIZARD (EXE) to create a basic MFC application and if I select the "REGULAR MFC" option in the end, the program runs fine....But if I select the "MFC IN STATIC LIBRARY"..it shows LNK4003 error... I am using the Enterprise Version of VC++ 6 Please help,,,, Allwyn Ds
-
Hi, When I use the APPWIZARD (EXE) to create a basic MFC application and if I select the "REGULAR MFC" option in the end, the program runs fine....But if I select the "MFC IN STATIC LIBRARY"..it shows LNK4003 error... I am using the Enterprise Version of VC++ 6 Please help,,,, Allwyn Ds
Allwyn D`souza wrote: ...it shows LNK4003 error... Which library is the linker complaining about?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Allwyn D`souza wrote: ...it shows LNK4003 error... Which library is the linker complaining about?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
it says: C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored nafxcwd.lib(winfrm2.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler .... and the list goes on... Kindly help !!!
-
it says: C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored C:\Program Files\Microsoft Visual Studio\VC98\LIB\libcmtd.lib : warning LNK4003: invalid library format; library ignored nafxcwd.lib(winfrm2.obj) : error LNK2001: unresolved external symbol ___CxxFrameHandler .... and the list goes on... Kindly help !!!
It sounds like your linker options are askew. I don't know if you need to add Nafxcwd.lib and Libcmtd.lib to the list of libraries to ignore, or change the order in which the linker processes them.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
It sounds like your linker options are askew. I don't know if you need to add Nafxcwd.lib and Libcmtd.lib to the list of libraries to ignore, or change the order in which the linker processes them.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
I will try what you suggested and get back to you... Actually, I just selected the "WIN32 Release" in the 'etting for' option.... and the code compiled and ran completely....
-
I will try what you suggested and get back to you... Actually, I just selected the "WIN32 Release" in the 'etting for' option.... and the code compiled and ran completely....
I just selected the "WIN32 Release" in the 'Setting for' option.in Project/Settings... and the code compiled and ran completely....
-
I just selected the "WIN32 Release" in the 'Setting for' option.in Project/Settings... and the code compiled and ran completely....
I am sorry I told you before that the code linked properly...actually the option just got resetted to "REGULAR share DLL" and the code ran fine.... Now I am back at the same point... When I ignore the default libraries the options look like this: /nologo /subsystem:windows /incremental:yes /pdb:"Debug/netmet1.pdb" /debug /machine:I386 /nodefaultlib /out:"Debug/netmet1.exe" /pdbtype:sept and when I disable the ignore default libs..the options look like this.... /nologo /subsystem:windows /incremental:yes /pdb:"Debug/netmet1.pdb" /debug /machine:I386 /out:"Debug/netmet1.exe" /pdbtype:sept What changes do i need to make to the above options...???