LIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I'm using a custom entry point. instead of winMainCRTStartup=>WinMain, I'm using my own AppBoot(). Too make the exe a little leaner. I've got custom new and delete and don't use exceptions. That's all great. But when I start using double and math funcs like sin(), I get the above error. my linker subsystem is windows and I have a custom entry point. So I'm guessing one or some of the math funcs are pulling in mainCRTStartup?? Not sure why it'd pull that instead of the WinMainCRTStartup?? Anybody run into this before? Thanks, ...Steve