Wow, thanks. My stuff compiles now. The order was wrong, so I got it from fltk2-config like you said and pasted it into other linker options of Codeblocks. :) Now I can start creating free education software for people.
> > > > While building, I havve been getting these errors in my build log: > > +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ > > D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$ > > _ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(f > > ltk::Rectangle const&) const]+0x9c):UpBox.cxx: undefined=20 > > reference to [EMAIL PROTECTED]' > > D:\zProgramming\Compilers\MinGW\lib\libfltk2.a(UpBox.o)(.text$ > > _ZNK10FocusFrame5_drawERKN4fltk9RectangleE[FocusFrame::_draw(f > > ltk::Rectangle const&) const]+0xb3):UpBox.cxx: undefined=20 > > reference to [EMAIL PROTECTED]' > > >=20 > > I've linked to all the library files in the lib directory of=20 > > my base FLTK2 folder. From the documentation, "libfltk2.a" is=20 > > the core library of FLTK2. I have no idea what is wrong at=20 > > the moment, since I'm new to how things work in GUI kits and=20 > > the like... > > It looks like you have forgotten to link against the win32 libs though - > the errors reported are all for stuff provided by the underlying OS, not > part of fltk directly. > > There are two common causes for this: > > 1. You just forgot to link the various win32 libs at all. > 2. You linked them, but in the wrong order. Note that many compilers > (gcc amongst them) are sensitive to link order, such that you must list > the library that provides a function *after* the things that *use* it > (so the compiler knows it is needed and links it in...) > > So, first off make sure you have actually linked the win32 libs, then > check the order. See the sample mingw makefile, I think it would list > the libs you need in the right order (although I never use it, so I > haven't checked.) > > As a betetr alternate, if you have fltk built from tarball using > mingw/msys or cygwin, you should be able to run the script "fltk2-config > --ldflags" and it will list the libs you need, in the correct order for > your system. > > http://www.fltk.org/articles.php?L598 > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 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

