Quantcast
Channel: Fortran
Viewing all articles
Browse latest Browse all 3108

Mixing Fortran/C++

$
0
0

Hi everyone,

I'm mixing Fortran/C++ in a project. I've looked through the forum and online, but haven't found a solution to my problem.

I've followed the instructions to configure Visual Studio for mixing languages at
https://software.intel.com/en-us/articles/configuring-visual-studio-for-...

I have a Fortran library that has the iso_c_binding interface for C/C++ users. I've used Visual Studio and the Intel compiler to create a static library for this project.

Then I used VS and the C++ compiler to compile a second library of C++ subroutines that call the Fortran library. (These would be the routines used by the C++ users).

I've got an example that I'm trying to compile and link to these two libraries, but I get an error:
LINK : fatal error LNK1104: cannot open file 'ifmodintr.lib'

I have no trouble doing all of this on other platforms but I'm a bit lost with Visual Studio. Any help would be most appreciated. Thanks in advance.

Elizabeth


Viewing all articles
Browse latest Browse all 3108

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>