[SAC-HELP] Library sacio.a in LINUX 64 bits

Juan M Gomez Gonzalez gomez at geociencias.unam.mx
Tue Apr 17 17:30:07 PDT 2007


    Hi there,

   Some people has succeeded to compile programs by adding -m32 when 
the need to use sacio.a library.

   I have tried to do it, but my compiler shows an incompatibility 
between X64 and i386. Could someone suggest me how to fix my problem?

I'm adding the compiler message and the Makefile.

   Thanks,

                JuanM

>>>> Compilation message

g77 -g -fno-underscoring -c sacnab2007.f
g77 sacnab2007.o -lm  -m32
-o /home/gomez/Bin/sacnab2007 /usr/local/Sac/lib/sacio.a
/usr/bin/ld: aviso: the input file architecture i386:x86-64
'sacnab2007.o' is not compatible with the output i386
>>>


Makefile
#######################################
SACLIB=/usr/local/Sac/lib/sacio.a
BIN = /home/gomez/Bin/sacnab2007
FFLAGS= $(FLOAT) -m32 -o

sacnab2007: sacnab2007.o
        g77 sacnab2007.o -lm $(FFLAGS) $(BIN) $(SACLIB)

%.o: %.f
        g77 -g -fno-underscoring -c $*.f




More information about the sac-help mailing list