Back to Mac Usenet

From: "rushabh" <rushabh.kothari@gmai
To: All
Subject: xfoil gfortran complilation err
Date:Sat, July 05, 2008 10:47 PM


I am not very good in fortran compilation, so if anyone can make
anysense out of this following error then let me know.

basically, i m trying to complile xfoil ( airfoil analysis tools from
MIT - http://raphael.mit.edu/xfoil/ ) on 10.4.6. I have gfortran
compliler from HPC (http://hpc.sourceforge.net/) and gcc from
developer's tool. You have to compiler two parts , first generates
libPlt.a and then you go and "make" main xfoil binariy. Most of the
fortran files are compiled properly but then at one point it give this
error:

gfortran -c -O3 -fomit-frame-pointer ../src/spline.f
gfortran -c -O3 -fomit-frame-pointer ../src/plutil.f
gfortran -c -O3 -fomit-frame-pointer ../src/iopol.f
gfortran -c -O3 -fomit-frame-pointer ../src/gui.f
gfortran -c -O3 -fomit-frame-pointer ../src/sort.f
gfortran -c -O3 -fomit-frame-pointer ../src/dplot.f
gfortran -c -O3 -fomit-frame-pointer ../src/profil.f
In file ../src/profil.f:943

IF(ABS(A(K,KPIV,I))-ABS(A(KX,KPIV,I))) 131,131,1311


1
Warning: Obsolete: arithmetic IF statement at (1)
gfortran -c -O3 -fomit-frame-pointer ../src/userio.f
gfortran -o xfoil xfoil.o xpanel.o xoper.o xtcam.o xgdes.o xqdes.o
xmdes.o xsolve.o xbl.o xblsys.o xpol.o xplots.o xgeom.o xutils.o
modify.o polplt.o aread.o naca.o spline.o plutil.o iopol.o gui.o sort.o
dplot.o profil.o userio.o ../plotlib/libPlt.a -L/usr/X11R6/lib -lX11
/usr/bin/ld: Undefined symbols:
_rshift_
collect2: ld returned 1 exit status
make: *** [xfoil] Error 1

why is "ld" giving this error ? it seems something wrong is going on
for linking Mach O binaries ??? Something wrong with the code itself
(although i highly doubt it, its old code and has been compiled
successfully on other platform)?


1


Running TeleFinder Server v5.7.
© Copyright Spider Island Software