Good day, I'm having a small problem when compiling FLTK programs from my ide ( 
Code::Blocks on Windows 7 ).

In particular, when I try to compile with the command line provided by the 
fltk-config --compile it all works, while when I compile from my IDE I get this 
error:

lib/libfltk.a(Fl_Native_File_Chooser.o):Fl_Native_File_Chooser.cxx:(.text+0x1556):
 undefined reference to `__chkstk_ms'

These are the two command lines, for comparing:

WORKING:
g++ -I..\fltk-1.3.0\ -mwindows -DWIN32 -DUSE_OPENGL32 -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE -o 'main' main.cpp -mwindows ..\fltk-1.3.0\lib\libfltk.a 
-lole32 -luuid -lcomctl32

NOT WORKING:
mingw32-g++.exe -Wall -fexceptions  
-IC:\Users\Svalorzen\Documents\Projects\fltk-1.3.0 -mwindows -DWIN32 
-DUSE_OPENGL32 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE     -c 
C:\Users\Svalorzen\Documents\Projects\test\main.cpp -o obj\Debug\main.o

mingw32-g++.exe  -o bin\Debug\test.exe obj\Debug\main.o   
-LC:\Users\Svalorzen\Documents\Projects\fltk-1.3.0\lib -mwindows -lfltk -lole32 
-luuid -lcomctl32

My IDE does the linking after the compiling, but I think this shouldn't be a 
problem? What am I missing?

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

Reply via email to