Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-03-2006, 02:26 PM   #1
Registered: Jul 2006
Posts: 102

Rep: Reputation: 15
need xfoil..for which i need fortran compiler to work

need xfoil and downloaded it...
SO i got as far as "make xfoil" using gfortran even though it said it needed f77.(added the flag -ff2c so it is compatible with f77 code)..this is when it says this:
../plotlib/libPltDP.a(ps_subs.o): In function `bitpat_':
ps_subs.f.text+0x78): undefined reference to `rshift_'
ps_subs.f.text+0xf9): undefined reference to `rshift_'
collect2: ld returned 1 exit status
make: *** [xfoil] Error 1

This is what the ps_sub.f file (the required portion) says:

c--- Shift the mask until the low order bit is 1 to start...
imask = mask
do n = 1, 16
ibitold = and(1,imask)
if(ibitold.NE.0) go to 5
nshft = n
imask = rshift(imask,1)
end do
5 nout = 0
if(nshft.GE.16) return
nbits = 0

anyone know how or what to do?i cant find anything on google.
Old 08-04-2006, 11:20 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
It's not a compiler-error, it's a linker error. Whatever your "different"
compiler does to object files doesn't seem to work with the linker. Try
using the compiler it suggests.

Old 08-16-2006, 06:57 AM   #3
LQ Newbie
Registered: Aug 2006
Posts: 25
Blog Entries: 1

Rep: Reputation: 18
It sounds like the fortran runtime from gfortran is missing something (probably and intrinsic) that your package needs, which is why you have a link problem.
I'm having more luck in general with the compiler/runtime.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
g77 in gcc 4.1.0 not found only gfortran fortran 95 compiler! I need fortran 77. TheBrick Linux - Software 3 07-04-2007 06:39 AM
Installing g77 fortran compiler for xfoil! flipwhy Linux - Newbie 9 11-16-2006 05:30 AM
Fortran 95 Compiler alunduil Programming 2 08-16-2006 07:12 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 08:59 AM
Fortran Compiler bob10a Linux - Software 14 07-19-2003 04:34 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration