- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am getting below error while trying to build my C++ project using the newly created Fortran .lib file.
error LNK2019: unresolved external symbol _whlrealft@16 referenced in function _WGPR50. Here 'whlrealft' is an Interface available in Fortran and 'WGPR50' is the subroutine name of the Fortran.
Earlier Compaq Visual Fortran was used to create the static Library. Now I am using Intel Visual Fortran 9.1. I was able to build Fortran project in Visual Studio 2003 IDE. When I am using the newly created .lib in C++ project I am getting above said error. C++ project also uses Visual Studio 2003 IDE. Could you please help me to resolve this issue?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The @16 was actually added by the C++ compiler in response to a compiler option to use Stdcall, or by specifying attributes for the external function in the C++ code. The programmer who wrote the C++ code probably did this to make it work with calls to CVF-compiled routines.
The default calling conventions of CVF and IFort are different. See the link "Migrating from CVF".
Please read the chapter on Mixed Language Programming in the IFort User's guide and decide how to proceed, keeping in mind that CVF conventions will not be available when you move to 64-bit code.
The default calling conventions of CVF and IFort are different. See the link "Migrating from CVF".
Please read the chapter on Mixed Language Programming in the IFort User's guide and decide how to proceed, keeping in mind that CVF conventions will not be available when you move to 64-bit code.

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