problem in linking with the option -static
By veronica.piccialli at Mon, Apr 12 2010 11:11am |
Hi to everybody,
I have a mixed code c and fortran that works perfectly on a linux machine. But when I try to compile the same code on the mac I get a mistake. If I compile using
bb:
gcc-mp-4.4 -O3 -o bb *.c -I. gb_flip.o -L. -lspeedp -lgfortran -lm -static -Wall
I get the following error:
ld: library not found for -lcrt0.o
collect2: ld returned 1 exit status
make: *** [bb] Error 1
If I remove the -static it says that it does not find some subroutines, but looking at the subroutines in the obj files by the command nm I realize that the subroutines are there...
Any idea?
Thanks a lot for any help!!!
Veronica



