> Here is the new error output from the linker: > > g++ -L/System/Library/Frameworks/OpenGL.framework/Libraries > -L/usr/local/lib /usr/local/lib/libfltk2_gl.a -framework OpenGL > -framework AGL /usr/local/lib/libfltk2.a -lpthread -framework Carbon > -framework ApplicationServices -o "sampleFLTK" > ./GraphEngine.o ./main.o > /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols: > fltk::GlWindow::init() > vtable for GraphEngine > vtable for fltk::GlWindow > collect2: ld returned 1 exit status > make: *** [sampleFLTK] Error 1
I'll not be able to try this (can't get to a Mac) until later on - but for now, it might help if you could also show us how you compiled the .o files (GraphEngine.o and main.o) just in case there's something odd there... FWIW, I'd still change the link order around - I'm very much in favour of listing things in the link line so that things that use a function are listed before the things that provide the function... Something like: g++ \ -o "sampleFLTK" \ ./main.o \ ./GraphEngine.o \ -L/usr/local/lib \ /usr/local/lib/libfltk2_gl.a \ /usr/local/lib/libfltk2.a \ -lpthread \ -framework OpenGL \ -framework AGL \ -framework Carbon \ -framework ApplicationServices Although most likely that makes no difference at all in Real Life... 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

