On 21 May 2011, at 21:25, Greg Ercolano wrote:

> asif saeed wrote:
>>> 1>MSVCRT.lib(crtexew.obj) : error LNK2019: unresolved external symbol
>>> _WinMain@16 referenced in function ___tmainCRTStartup
>>> 1>E:\scratch\tt\Release\tt.exe : fatal error LNK1120: 1 unresolved
>>> externals
> 
>       We need some MS specific instructions on how to compile eg.
>       hello.cxx against DLL versions of the lib.
> 
>       I have a question to the devs, as I don't know much about this
>       subject.
> 
>       If the WinMain definition is commented out in the dll build of FLTK,
>       and if you compile + link a /subsystem:windows app (which implies 
> WinMain()
>       will be called), where is the definition of WinMain supposed to come 
> from?
> 
>       I'm probably missing something, but it sure seems like if someone
>       wants to build even a simple hello world as /subsystem:windows
>       against the FLTK dlls, the app would have to defined WinMain()..?


What does the DLL build version of fluid do? That works, afaik, as do the test 
programs, at least when I build them "dynamic" with mingw. I have no idea what 
the MS VS tools do, but it can't be all that different?





_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to