Re: Linker seems to miss _tmainCRTStartup (MFC42 -> MFC8)
You may want to build a dummy MFC project and compare the settings to your
project's settings.
Particularly, the "Use of MFC", "Runtime Library", and "Entry point"
settings.
My MFC projects have wWinMainCRTStartup as the entry point, but that's only
for Unicode builds.
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
"Rob Vermeulen" <rvermeulen@nospam-arbor-audio-spamless.com> wrote in
message news:46c30878$0$8739$e4fe514c@dreader22.news.xs4all.nl...
Hi all,
I think you are my last resort :)
I'm migrating an MFC42 (win32) app written in VC++6 to MFC8 in VC++2005.
After solving some namespace conflicts, (239) unresolved externals,
including the right libs and removing the old ones I am still stuck with 1
unresolved external.
Error 1 error LNK2019: unresolved external symbol _main referenced in
function ___tmainCRTStartup msvcrtd.lib
I googled around with confidence of finding the solution. I checked if the
subsystem settings are correct (/subsystem:windows) and if the entry point
setting in my advanced linker config was set as it should. (which was
empty in my project)
Someone said I should put wWinMainCRTStartup there, so I did. All I got
was another unresolved external about some afxWinMain that couldn't be
found.
All the other 1.234.567 google-hits about this problem suggested exactly
the same solutions or applied to WindowsCE.
I am now running out of options and hope that you guys ( | girls) can give
me some better advice.
Please ask me what you want me to copy-paste here (settings, files
whatever) if you need to know it.
I look forward to solving this!
(I buy you a beer or 2 :-)
Best regards,
Rob Vermeulen
(rvermeulen at arbor-audio dot com)