Can't Compile GMP with gcc mac 10.4.11
Ok I realize this is a Linux forum, but can I at least be pointed to a more relevant forum.
My problem is when I try to compile a program with GMP gcc doesn't compile but gives the error: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: ___gmpz_get_d ___gmpz_init ___gmpz_mul_ui ___gmpz_set_ui collect2: ld returned 1 exit status I'm compiling from terminal using the command gcc clarkkkkson.c -o clarkkkkson and I have tried the options -lgmp -lgmp -L/usr/local/include -lgmp -L/usr/local/lib -lgmp -L/usr/local/lib/ -lgmp -L/usr/local/lib/libgmp.dylib -lgmp -L/usr/local/lib/libgmp.a -lgmp -L/usr/local/lib/libgmp.la -L/usr/local/lib/libgmp.dylib -L/usr/local/lib/libgmp.la -L/usr/local/lib/libgmp.a -L/usr/local/lib/ to no avail. The source code is Code:
double fact(unsigned int number, unsigned int class_) { |
i dont think the .dylib resides in /usr/local/lib
rather in /System/Library or /Library but i dont have a Mac within reach right now... so im just guessing |
All times are GMT -5. The time now is 04:33 PM. |