On 11/07/11 18:22, Coder wrote: > Hi, > > > I get an error trying to compile with mingW on windows. > > $fltk-config --compile myfirstwindow.cxx > g++ -I/usr/local/include -I/usr/local/include/FL/images -mwindows -DWIN32 > -DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -o 'MyFirstWindow' > 'MyFirstWindow.cxx' -mwindows /usr/local/lib/libfltk.a -lole32 -luuid > -lcomctl32 > c:/mingw/bin../lib/gcc/mingw32/4.5.2/../../../libmingw32.a(main.o):main.c(.text+0xd2): > undefined reference to 'WinMain@16' > collect2: ld returned 1 exit status > > > How can I solve it?
Curious: are you able to compile the test/hello.cxx program that comes with FLTK using the same command? _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk