On 06.05.2008, at 02:06, Gary Weissman wrote:
>>> -L/System/Library/Frameworks/OpenGL.framework/Libraries
>>> -L/usr/local/lib /usr/local/lib/libfltk2_gl.a -framework AGL
>>> -framework OpenGL /usr/local/lib/libfltk2.a -lpthread -framework
>>
>> Does framework AGL come before or after framework OpenGL? I can't
>> recall... Actually, is link order significant with frameworks? I'm
>> not
>> sure it is...
>
>
> I'm not sure about this, but I reversed them in the following example
> and the same error appears.
Make sure that you keep the path to the libraries, not the libraries
themselves in "-L", so that option becomes: "-L/usr/local/lib" as
above. Then link FLTK as a library, not as object code: "/usr/local/
lib/libfltk2.a" should be "-lfltk2" and "/usr/local/lib/libfltk2_gl.a"
sould be "-lfltk2_gl".
> /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
> fltk::GlWindow::init()
fltk2_gl doesn't exist, was compiled wrong, or is linked in the wrong
order
> vtable for GraphEngine
> vtable for fltk::GlWindow
These may relate to a comiler bug. Try changing the order of functions
inside "GraphEngine". There was one constellation where an existing
vtable could not be found, but I do not remember what the exact
conditions were. You GraphTable header file is not protected from
double inclusion by an #ifdef/#endif bracket which may also be related
to this.
>
> // filename: GraphEngine.hpp
> #include <fltk/gl.h>
> #include <fltk/GlWindow.h>
> #include <fltk/Window.h>
>
> class GraphEngine : public fltk::GlWindow{
>
> public :
> GraphEngine(int X,int Y,int W,int H,const char*L);
> ~GraphEngine();
>
> private:
> void draw();
>
> };
Matthias
----
http://robowerk.com/
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk