Stewart Dickson wrote:
> Hi,
> 
> I just downloaded 
> http://ftp2.easysw.com/pub/fltk/snapshots/fltk-1.3.x-r7513.tar.gz
> built and installed it using:
> cd /usr/local/src/fltk-1.3.x-r7513
> ./configure
> make
> sudo make install
> i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)
> 
> When I attempt to build a user application against -L/usr/local/lib -lfltk
> I get:
> Undefined symbols:
>    ".objc_class_name_NSView", referenced from:
>        literal-poin...@__objc@__cls_r...@nsview in libfltk.a(Fl.o)
>        .objc_class_name_FLView in libfltk.a(Fl.o)
>        literal-poin...@__objc@__cls_r...@nsview in 
> libfltk.a(Fl_Native_File_Chooser.o)
> ...
>    ".objc_class_name_NSOpenPanel",
> ...
>    ".objc_class_name_NSImage",
> ...
>    ".objc_class_name_NSScreen",
> ...
>    ".objc_class_name_NSCursor", referenced from:
>        literal-poin...@__objc@__cls_r...@nscursor in libfltk.a(Fl.o)
> ld: symbol(s) not found
> 
> Attempting to port from MacOS-X 10.4.11 (Tiger/G4 PPC) to MacOS-X 10.6.2 
> (Snow Leopard/Intel)
> (Was not expecting objective C? to be entering the picture, when I 
> thought I was using GNU g++).

        Hmm, manolo might be able to answer that one; some changes
        to 1.3 included using Cocoa instead of carbon.. so objective c
        is used during the FLTK build for the Cocoa related code.

        However, you should still be able to compile/link your app
        with regular g++.

        My guess is that when you build your app, your link line might
        be missing something needed for the new FLTK builds.

        How are you deriving your link line?
        Try using fltk-config to derive the lib names.

        Or, my favorite way: rebuild one of the FLTK test programs
        that is most like your own, but comment out the .SILENT line
        in the fltk makeinclude file, so as the test program builds,
        you can see the test program's link line, and compare that
        to your own to see if there's any new libs you need to link against.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to