Nagware Fortran compiler and Leopard

Discussion in 'Mac Programming' started by Aiueoz, Nov 7, 2007.

  1. macrumors newbie

    Joined:
    Nov 7, 2007
    #1
    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
     
  2. macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #2
    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.
     
  3. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #3
    Unless they've updated it in the last year to do so, it doesn't on the Mac.

    You could try the latest version of g95 here.

    Alternatively you can use the Intel Compiler for evaluation.
     
  4. thread starter macrumors newbie

    Joined:
    Nov 7, 2007
    #4
    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&#5739494
     

Share This Page