gcc flags problem

pioannid

Registered
Hello everyone

I am trying to install something but I can't... After 'configure', which ends with no problem but where I get this:

checking for sqrt in -lm... no
checking for main in -lgslcblas... no
checking for main in -lgsl... no

I am trying to to 'make' but I end up with this error:


gcc -g -Wall -static -o multipht multipht.o multimatch.o multiweight.o multiwrite.o multisort.o multiclean.o
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make: *** [multipht] Error 1

I think that the problem is the flags because when I tried to install the same thing in Ubuntu at the configuration I took

checking for sqrt in -lm... yes
checking for main in -lgslcblas... yes
checking for main in -lgsl... yes

and everything went well.

Please help
Thanks
 
The problem is not with the flags. The first line "sqrt in -lm" says that you do not have (or more likely, gcc does not find) the math library and the line "ld: library not found for -lcrt0.o" says that you do not the C startup library. Since both are needed for any basic program, most likely you do not have XCode installed. It comes with the OS X dvd.
 
Back
Top