> 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++). > > Thanks, > > -Stewart, http://us.imdb.com/Name?Stewart+Dickson
Stewart: There's now objective-c++ inside FLTK-1.3. The benefit of that is the use of the more modern Cocoa and the possibility to compile FLTK apps in 64-bit mode. But this is purely internal to the library. The API remains C++, and you don't need another compiler than Apple's gcc/g++. You just have to add these 2 arguments at the end of your link command(s): -framework Cocoa _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
