Link error ???? (neophite)
-
Hi all, I made my first ATL w/ Visual C++ 6.0 project and it (almost) perfectly works in Debug Config, when I try to compile in Release MinDependecy I get the following link error: inking... Creating library ReleaseMinDependency/cnitfc.lib and object ReleaseMinDependency/cnitfc.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseMinDependency/cnitfc.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. What's goin'on? Please help me. thanx a lot. Regards, Andrea :)
-
Hi all, I made my first ATL w/ Visual C++ 6.0 project and it (almost) perfectly works in Debug Config, when I try to compile in Release MinDependecy I get the following link error: inking... Creating library ReleaseMinDependency/cnitfc.lib and object ReleaseMinDependency/cnitfc.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseMinDependency/cnitfc.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. What's goin'on? Please help me. thanx a lot. Regards, Andrea :)
Remove '_ATL_MIN_CRT' from the list of pre-processor defines. You've used part of the C run-time library that pulls in the initialisation part of the library. This looks for _main, which isn't defined if _ATL_MIN_CRT is defined. HTH Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
Remove '_ATL_MIN_CRT' from the list of pre-processor defines. You've used part of the C run-time library that pulls in the initialisation part of the library. This looks for _main, which isn't defined if _ATL_MIN_CRT is defined. HTH Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
Thanx a lot. Really.