- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page