- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
my school's using ifort & icc v9.0.021, Build 20050430. I'm trying to compile a library called hypre which interlinks fortran & c++.
It gives an error message saying fortran can't link with c++ object. Is it becuase this version is too old? Is there any workaround?
Thanks
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you compare what you are doing with the examples provided with your copy of ifort, as well as the documentation of the library? If you mean by "c++ object" that you don't want to declare "extern C" then you are outside what is supported in any portable way, probably not following the instructions which come with hypre, and you will surely have to read the documentation specific to ifort. If you are using their Fortran interface, the interface for gfortran should be easy to use with ifort, g77 interface not so easy. There are too many ways to do the job (1 more if you would use a current compiler) and too many things you might be trying, for us to guess which you have chosen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You gave us the version of icc you use, 9.0.021. What is your ifort version? I should be of the same major version as your icc, so it should be 9.0.xxx. You need to make sure your compilers are the same major version.

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