[windev] LIBC.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup

Stephen Hazel stephen.hazel at gmail.com
Wed Jul 29 23:02:10 GMT 2009


Env: Win2k+;  MSVC7;  win32 (no MFC)

Ok, I've been successful slimming down my .exes by
using a custom linker entry point other than
winMainCRTStartup (I use one called AppBoot).

I just use windows funcs and everything's nice and teeny.

But throw in some doubles and math.h funcs like sin() and I get the error in
the subject line...:(

Now, I'm using linker subsystem of windows.
And linker ignoreAllDefaultLibraries of no.
Not sure why it's even looking at mainCRTStartup (instead of winMainCRTStartup).

Has anybody messed with this before?

Failing that, if I go to the free visualc++2005 or 2008,
 I lose a resource editor, right?

Is there some free resource editor out there that'll replace it?

Thanks for any help :)

...Steve


More information about the Windev mailing list