image
image

|


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

Reply
 
Thread Tools
  #1  
Old June 12th, 2008, 03:48 AM
Registered User
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fuchi84 is on a distinguished road
Undefined symbols with g77 on mac os X 10.4.11

hi,
i'm trying to run a program in fortran on my mac but when i compile i get

/usr/bin/ld: Undefined symbols:
_c05nbf_
collect2: ld returned 1 exit status
i've installed gcc.4.0.0 and xcode 2.5........i don't know what's the problem..

Could someone help me?

thanks
Reply With Quote
  #2  
Old June 12th, 2008, 11:11 AM
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
How did you install your copy of Fortran?
Reply With Quote
  #3  
Old June 12th, 2008, 02:49 PM
Registered User
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fuchi84 is on a distinguished road
igot gcc.4.0.0 and i installed g77.
Reply With Quote
  #4  
Old June 13th, 2008, 12:44 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
How did you install it? Did you compile it from source? Download it from some place?
Reply With Quote
  #5  
Old June 15th, 2008, 05:30 AM
Registered User
 
Join Date: Jun 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
fuchi84 is on a distinguished road
maybe this is the problem

hi, maybe i think i 've understod the problem.

in the program i'm trying to run there's a call for a routine "c05nbf" and if i comment it everything works when i compile and i don't get any error.
I'm at the first steps with fortran and i presume that these routines are the same as the libraries in C but i don't know where to get this specific routine.

what do you think?

thanks
Reply With Quote
  #6  
Old June 15th, 2008, 02:09 PM
Registered User
 
Join Date: Mar 2005
Posts: 191
Thanks: 0
Thanked 1 Time in 1 Post
artov is on a distinguished road
Google tells, that c05nbf is a NAG routine. I know next to nothing about NAG (or Fortran), but I think it is not available for g77. Check http://www.nag.com/downloads/fldownloads.asp for more information.
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 07:28 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.