PDA

View Full Version : Nagware Fortran compiler and Leopard




Aiueoz
Nov 7, 2007, 05:10 PM
Hello.

I have used Nagware f95 compiler since I used Tiger.
Just today I've changed the OS to Leopard (ie, Xcode 3.0).
Now I tried to use Nagware f95 compiler as usual, but I've got a message as below:

Undefined symbols:
"___NAGf90_sin_c", referenced from:
flat_namespace undefines in libf98.dylib
"___NAGf90_sqrtd", referenced from:
flat_namespace undefines in libf98.dylib
"___NAGf90_sqrtf", referenced from:
flat_namespace undefines in libf98.dylib
ld: symbol(s) not found
collect2: ld returned 1 exit status

It seems to be the library path has changed.

I don't know how to fix it...
If you know how to cope with this problem, could you tell me, please?

Best regards,

Aiueoz



ChrisA
Nov 8, 2007, 11:32 PM
What's wrong with gcc? gcc does FORTRAN 90 just fine.

When you build gcc you can enable any of sevral languages. The gcc in xcode has only C, C++ and Objective C but you can also get it to do Ada, FORTRAN and Java. You can go to the GNU site and get the source or get it from Fink pre built. I just had to compile from source on Solaris. Took "forever" even on a modern high end SPARC server.

Eraserhead
Nov 9, 2007, 03:10 AM
What's wrong with gcc? gcc does FORTRAN 90 just fine.

Unless they've updated it in the last year to do so, it doesn't on the Mac.

Hello.

I have used Nagware f95 compiler since I used Tiger.
Just today I've changed the OS to Leopard (ie, Xcode 3.0).
Now I tried to use Nagware f95 compiler as usual, but I've got a message as below:

You could try the latest version of g95 here (http://ftp.g95.org/).

Alternatively you can use the Intel Compiler (http://www.intel.com/cd/software/products/asmo-na/eng/compilers/fmac/267426.htm) for evaluation.

Aiueoz
Nov 12, 2007, 02:39 AM
Thank you for the reply.

I suppose it's a library path problem, anyway I'll keep looking for the solution about NAGf95.
Well, but as you suggested me, I also use Intel Fortran compiler, accessing another Linux from Mac. I've read somebody had a problem with Intel Fortran compiler:
http://discussions.apple.com/thread.jspa?messageID=5739494�