vladimir wrote:
> ++++++
> This look very much as if you are passing the wrong libraries to the
> linker - or possibly you are passing the correct libraries, but in the
> wrong order (many linkers are sensitive to the order of libraries at
> link time - in particular, the gcc linker is, which is relevant to your
> use case.)
> 
> So - you need to change your linker invocation to match the list of
> libraries and their ordering that is used in the fltk makeinclude file,
> and hopefully that will get it working.
> ++++++
> 
> dear sir,
> 
> thank you for your reply, i tried every connection to the FL .h files,
> i checked the .h files location copy it even into include (not FL directory)
> and changed the #include <...> adequatly but without success

        The error you posted originally:

/examples/CubeViewUI.cxx:117: undefined reference to `Fl_Group::current()'

        ..is a link stage error, not a compile/preprocessor error.

        This means the error is /not/ about the .h or the #include's
        in your program; those are all resolving correctly.

        The error is about the linker not loading /usr/lib/libfltk.a,
        either because it's not being specified in your link line correctly,
        or the order of placement is incorrect.

> but as i mentoned in my first post i compiled the hello project well with g++ 
> compiler from the command line
> 
> g++ -I/usr/include/freetype2 -o hello hello.cxx /usr/lib/libfltk.a -lXft 
> -lXinerama -lpthread -lm -lXext -lX11

> my problem is how to compile the program from the netbeans?

        What does your compile & link line look like for your netbeans app?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to