image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old June 18th, 2008, 09:34 AM
Registered User
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fuchi84 is on a distinguished road
Does anyone know how to install a fortran library?

hi,
i have to run a program in fortran 77, the problem is that i haven't got a NAG library but in some way i finally get it.
Now i really don't know where i have to put it because the error i get is:

/usr/bin/ld: Undefined symbols:
_c05nbf_
collect2: ld returned 1 exit status

c05nbf is the library i need to run correctly the program.

thanks
Reply With Quote
  #2  
Old June 18th, 2008, 12:38 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,482
Thanks: 0
Thanked 0 Times in 0 Posts
Viro will become famous soon enoughViro will become famous soon enough
If its anything like GCC (which I think it is) you need to pass the flags -L/path/to/library and -llibrary name. So, if my library is installed in /opt/lib and the library is called foo.a, the following g77 command is what I need to type:

Code:
g77 -L/opt/lib -lfoo
I do not think it will work though, as I've had a look at http://www.nag.co.uk/downloads/fldownloads.asp. It appears that GNU Fortran is not supported under OS X, and even Linux uses gfortran (which is Fortran 95 and not Fortran 77).
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:20 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.