man, 14 07 2008 kl. 13:52 -0400, skrev Thomas L. Scofield: > I have been doing some work on imread(). I'm not well-versed in the > compiling/linking process, and have had trouble with this on my Mac. > I have the image-1.0.6 package on my mac and can use it. What I > cannot do is make changes to a file like __magick_read__.cc and then > compile it on the Mac. It's not my changes which are at fault. For > the last few weeks I've been using a linux machine instead, where > I've got things setup correctly (I guess), and I can run something like > > mkoctfile __magick_read__.cc `Magick++-config --cppflags` -lMagick > ++ -lMagick > > without an error. (My changes, which involve an effort to move away > from ImageMagick and towards GraphicsMagick, compile, and the routine > is usable on that machine.) But on the Mac I get all kinds of > "undefined symbol" messages from ld (see below).
I've never used a Mac in my entire life so what have to say probably isn't all that relevant, but hey... Problems with linking (ld) doesn't have anything to do with the headers, but with the link flags. You seem to compile with mkoctfile __magick_read__.cc `GraphicsMagick++-config --cppflags` -lGraphicsMagick++ -lGraphicsMagick Here '-lGraphicsMagick++ -lGraphicsMagick' are the link flags. I'd try with something like mkoctfile __magick_read__.cc `GraphicsMagick++-config --cppflags` `GraphicsMagick++-config --libs` which should give you the right link flags (at least, I think that's the idea with the GraphicsMagick++-config script). Søren ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
