- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I downloaded the code samples to see the method for calling Fortran from C++, and was interested in testing the "C_calls_Fortran"solution (specifically, the "USELIB" project in which a C++ program calls a Fortran subroutine built into a static lib. However, when I tried to build the solution, the Fortran and C++ compiled OK, but the build ends with a link error (fatal LNK1104: cannot open file 'ifconsol.lib').
Has anyone run into this before and know what it is I need to set to make this work. Something simple, I'm sure.
I'm running IVF W_FC_C_9.0.028 Thx.
- Longden
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could try the following :
Inthe VS IDE Tools->Optionsunder the Projects->C++ Directories option for Library filesadd the line $(IFORT_COMPILER90)IA32lib
Les
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes,I saw that on another thread and tried it but it oddly didn't work.
I said oddly because I just found that adding $(IFORT_COMPILER90)IA32lib to the USELIB project settings [ Properties / Linker / General / Additional Library Directories ] fixed the problem.
I was mostly surprised that the packaged solution didn't work "out of the box".
Maybe cuz it's Monday :)
Thx. Longden
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Fortran install does not add the Fortran library path to the MSVC library path list. You have to do this manually.

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