Hi d5,
Well if I understood well I did the following:
I follow your advice and I did "make" again in order to get the whole compiler command which is something like
g++ -bundle -undefined suppress -o gridflow.bundle base/main.o base/grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/number.2.o base/number.3.o base/number.4.o format/x11.o format/quartz.o format/jpeg.o format/png.o format/quicktimeapple.o optional/gem.o optional/fftw.o -L/Users/fan/lib -L/usr/local/lib -L/sw/lib -lm -L/usr/X11R6/lib -lX11 -lXext -lobjc -framework Cocoa -ljpeg -lpng -lz -framework Quicktime -lfftw3f -lfftw3 -L. -lruby -ldl -lcrypt -lm
and then I changed it to
g++ -bundle -undefined error -o gridflow.bundle base/main.o base/grid.o base/bitpacking.o base/flow_objects.o base/number.1.o base/number.2.o base/number.3.o base/number.4.o format/x11.o format/quartz.o format/jpeg.o format/png.o format/quicktimeapple.o optional/gem.o optional/fftw.o -L/Users/fan/lib -L/usr/local/lib -L/sw/lib -lm -L/usr/X11R6/lib -lX11 -lXext -lobjc -framework Cocoa -ljpeg -lpng -lz -framework Quicktime -lfftw3f -lfftw3 -L. -lruby -ldl -lcrypt -lm
but now I get another error
/usr/bin/ld: can't locate file for: -lcrypt collect2: ld returned 1 exit status
I am not so good at compiling stuff so maybe I 've done something wrong!
thanks
On 10/24/06, day 5 day5ive@gmail.com wrote:
Hi Fanouris,
I was getting this error when compiling GridFlow 0.8.4 as well.
On Oct 24, 2006, at 8:56 AM, Fanouris Moraitis wrote:
/usr/bin/ld: -undefined error, -undefined dynamic_lookup or -undefined define_a_way must be used when -twolevel_namespace is in effect
The solution was to copy the entire commandline that invokes the compiler, paste into Text Edit or some such and change the instance of "-undefined suppress" to "-undefined error" and copy-paste it back in your Terminal window. That's what worked for me.. Note that it doesn't work to change "-undefined suppress" in the Makefile or Makefile.in because some other components of GridFlow must explicitly require "-undefined suppress". Good luck! P.S. I'm on 10.3.9 so I'm not sure how different the process is but I don't imagine it is very much.
./d5