Using STL in ATL
-
In my ATL DLL projects, I used one of the containers in STL. I also tured on the "Exception Handling" compiler option (-Gx) to suppress the warnings. It's just fine with my DEBUG built. But there is a link error "error LNK2001: unresolved external symbol _main" from my RELEASE build. Could anyone tell me what I should do to solve the problem? Thanks, Tony
-
In my ATL DLL projects, I used one of the containers in STL. I also tured on the "Exception Handling" compiler option (-Gx) to suppress the warnings. It's just fine with my DEBUG built. But there is a link error "error LNK2001: unresolved external symbol _main" from my RELEASE build. Could anyone tell me what I should do to solve the problem? Thanks, Tony
Remove the preprocessor option ATL_MIN_CRT from the release build settings.
-
Remove the preprocessor option ATL_MIN_CRT from the release build settings.
-
It does work with my "Release MinDependency" build! But it couldn't solve the problem within my "Release MinSize" build. What should I do? Thanks, Tony
Hi, You MUST remove the preprocessor option ATL_MIN_CRT from ALL release builds, not only from "Release MinDependency". Regards, Alex Gorev, Dundas Software.