LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-03-2006, 03:26 PM   #1
flipwhy
Member
 
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
c
5 nout = 0
if(nshft.GE.16) return
nbits = 0
c


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

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.


Cheers,
Tink
 
Old 08-16-2006, 07:57 AM   #3
richardash1981
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 g95.org compiler/runtime.
 
  


Reply


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 07:39 AM
Installing g77 fortran compiler for xfoil! flipwhy Linux - Newbie 9 11-16-2006 06:30 AM
Fortran 95 Compiler alunduil Programming 2 08-16-2006 08:12 AM
does linux fortran compiler in fedora 4 support VAX FORTRAN? terrence Programming 17 08-31-2005 09:59 AM
Fortran Compiler bob10a Linux - Software 14 07-19-2003 05:34 AM


All times are GMT -5. The time now is 08:48 PM.

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