- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
sorry for the disturbing.
Now I compile all my ocean model with the help of ifort, but I also need to use the NCL static lib which compiled by gfortran. it always said that "undefined reference to MAIN__"
What should I do now? Thanks for your help.
Best Regards
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This usually means that you compile a module as if it were a main program. Without code and compile or link command nothing else to add.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can't do this - it won't work. In general, you must recompile all sources using a single Fortran compiler. Objects and libraries from one Fortran compiler don't work with those from another.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page