Thank you, Ian ! I followed your suggestion about -DWIN32 and something changed (better..)
The error about X11 is not there anymore. I will look at the fltk-config section, as you said.. In the meantime I have tried again but I still have differents errors lines, compiling with -DWIN32: g++ -o "C:\EsempiCPP\PrintMessage" "C:\EsempiCPP\PrintMessage.cpp" -static -std=c++0x -DWIN32 Process started >>> C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0x22): undefined reference to `Fl_Widget::label(char const*)' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0x5a): undefined reference to `Fl_Window::Fl_Window(int, int, char const*)' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0x91): undefined reference to `Fl_Button::Fl_Button(int, int, int, int, char const*)' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0xb4): undefined reference to `Fl_Group::end()' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0xc0): undefined reference to `Fl_Window::show()' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0xc5): undefined reference to `Fl::run()' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0xe2): undefined reference to `Fl_Window::~Fl_Window()' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text+0x10a): undefined reference to `Fl_Window::~Fl_Window()' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text$_ZN9Fl_ButtonD1Ev[Fl_Button::~Fl_Button()]+0xb): undefined reference to `vtable for Fl_Button' C:\DOCUME~1\AMMINI~1\IMPOST~1\Temp\ccC6XHcj.o:PrintMessage.cpp:(.text$_ZN9Fl_ButtonD1Ev[Fl_Button::~Fl_Button()]+0x16): undefined reference to `Fl_Widget::~Fl_Widget()' Giuliano > > > Hi, I'm trying to install/use FLTK for the first time. > > I am trying for 2 days already, but still no solution to my problem. > > = > > > I've got FLTK 1.3.0 and would like to use FLTK on a Windows XP machine, > > compiling c++ code for Win32 programs running on Windows O.S. > > = > > > I do not need to have cross portability as I am using only Windows at > > the moment. > > = > > > I ca build FLTK itself without errors, configuring msys with: > > ./configure --target=3D[windows] > > Why? > > What made you think that a --target option is required? (clue: it is not re= > quired.) > > This works fine for me, with Msys on WinXX hosts... > > ../configure > > > > Then: make > > Then: make install > > > Then: test/demo > > and I can run the app without problem > > OK - so FLTK had built fine and is working (needless target setting aside..= > ..) > > > > But, after that, when I compile a simple example > > using FLTK, the compiler g++ give me the error: > > Xutf8.h:24:19: fatal error: X11/X.h: No such file or directory > > = > > > Why is looking for the folder X11? is it needed also on Windows? > > How do I find exactly what is missing? > > Is there a complete X11 package that I should install before compilation?. > > Where to find it for Windows? Where to install it? > > = > > > Do you think I am missing some directive in my ./configure? > > No, rather I suspect you are missing a setting in your compiler. > > You MUST ensure that the value WIN32 is defined in your build. With gcc bas= > ed compilers you would add -DWIN32 somewhere in the compiler options. > > Or, you can put a suitable define in a header file that is included before = > any fltk headers are read.. (e.g. #define WIN32 1 in a project wide header = > somewhere.) > > If you have the Msys shell, run fltk-config to build your code, it will do = > the Right Thing for you... > > http://www.fltk.org/articles.php?L599 = > > > > > > SELEX Galileo Ltd > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS= > 14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

