Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29486 Discussions

Difficulty with launching Fortran app in OS X

Dick_L_
Beginner
874 Views

I posted this before a few days ago but have received no replies.

Previously I developed a pretty simple Fortran in Xcode and ran it without any real problems (OS X 10.10) as command line. Now it will build but not launch. I have upgraded to Xcode 7.1.1 but no difference. I have upgraded the compiler to the 2016 version .Although I have not tried it before i have t just run the compiler from the command line and get this result.

Macintosh:~ dicklerski$ ifort gelst5.f

Undefined symbols for architecture x86_64:

  "_ts2932_", referenced from:

      _MAIN__ in ifortzaBFY5.o

ld: symbol(s) not found for architecture x86_64

 

Environment variables? Does anyone have any ideas - this is really frustrating. Thanks

 

 

 

 

 

0 Kudos
1 Reply
Lorri_M_Intel
Employee
874 Views

This appears to be different from your other post.

In this case, there is a missing symbol at link time.  

How is "ts2932" declared or referenced in  your program?  Is it possible that it is undefined, and that you are referencing it as an array?  That would cause the compiler to believe that it was an external routine.

For example:

    program main
    print *, ts2932(1)
    end

You may find more of these by using the -warn declarations command line option.

                  --Lorri

 

 

0 Kudos
Reply