Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Contributor I
13 Views

Possible missing Macro definition with Visual Studio 2017

I have created a new project with a C++ main and a Fortran static library subroutine. It all seems to be OK. However linking fails as the Fortran Sttaic library definition is missing in the Link>Input field. It seems like Intel Fortran macro which creates the Library Project seems to add a Macro called "%(Additional Dependencies)" which seems to be never defined as it can be seen from the following picture:

AdditionalDependencies_0.JPG

I can see that Fortran compiler compiles and creates the library. I am attaching the solution ZIP file. I can always enter the Libray location manually, but I want to find a better solution. Any help would be appreciated.

I. Konuk

 

0 Kudos
1 Reply
Highlighted
Black Belt Retired Employee
13 Views

The problem is that, as of

The problem is that, as of VS2015, C++ projects no longer include non-C++ dependent projects in link dependencies. You have to manually add the Fortran library to the link properties or as a source file in the C++ project.

--
Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos