Nagware Fortran compiler and Leopard

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

  1. Aiueoz
    Expand Collapse
    macrumors newbie

    Nov 7, 2007

    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,

  2. ChrisA
    Expand Collapse
    macrumors G4

    Jan 5, 2006
    Redondo Beach, California
    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. Eraserhead
    Expand Collapse
    macrumors G4


    Nov 3, 2005
    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. Aiueoz
    Expand Collapse
    thread starter macrumors newbie

    Nov 7, 2007
    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:

Share This Page