On 20.05.2011 17:50, asif saeed wrote: > Now I am getting this error: > > 2>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol > _WinMain@16 referenced in function ___tmainCRTStartup > 2>E:\scratch\ttt\Debug\ttt.exe : fatal error LNK1120: 1 unresolved externals > > I am using fltk-1.3.x-r8514 with Visual C++ 2010 Express. The fltddlld.dll > gets built ok. I get this linker error only at the very end.
I'm trying to help you to help yourself, but maybe this is not helpful at all... FLTK is supposed to create a WinMain function for you (Windows needs this to start your app), and you are supposed to have a main() entry in your main program (which seems to be okay according to your other posting). One reason might be a different name mangling (the preceding underscore and the trailing @16), but this seems to be okay... The next possible reason might be that you don't use the correct linker order or something like this. WinMain is supposed to be in fltkdll(d).dll, so that the linker ought to find it. If it doesn't, I'm just guessing that it could be something about other compiler setups like debug or release mode (use the same for your app and the fltk lib (dll) you want to use). Other than that I'm afraid I can't help any more with this :-( Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

