> Trying to compile a project under Fedora 10, with 
> Code::Blocks, and get this:
> 
> /usr/lib/libfltk.a(Fl.o): In function 
> `Fl_Widget::damage(unsigned char, int, int, int, int)':
> (.text+0x8b7): undefined reference to `XUnionRectWithRegion'
> /usr/lib/libfltk.a(Fl.o): In function 
> `Fl_Widget::damage(unsigned char, int, int, int, int)':
> (.text+0x95e): undefined reference to `XDestroyRegion'
> /usr/lib/libfltk.a(Fl.o): In function 
> `Fl_Widget::damage(unsigned char)':
> (.text+0x9dc): undefined reference to `XDestroyRegion'
> /usr/lib/libfltk.a(Fl.o): In function `Fl_Window::handle(int)':
> (.text+0xf09): undefined reference to `XMapWindow'
> ..
> and so on for a while.
> 
> It looked to me as though I was missing x lib but, have 
> installed everything i can find, and still get this problem.

Show us what you have for your link line.
This looks a lot like you have either forgotten to link in the necessary
libs, or you have linked them in the wrong order.
Remember that gcc is (indeed, many compilers are) sensitive to link
order, so you may have the correct libs but in the wrong order.





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

Reply via email to