Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Referencing module

Intel_C_Intel
Employee
348 Views

I have a set of functionsin a module that compiled and linked without any problems in CVF 6. When I link against the module in IVF, I get linker errors indicating that I can't find references to the module name prepended with "__imp__MODULE_mp_FUNCTION" where MODULE is the module name and FUNCTION is the function name. Any ideas?

I figure I either need to specify a project setting to create the correct convention for the symbol definition or I need to change how the linker finds the references.

0 Kudos
1 Reply
Steven_L_Intel1
Employee
348 Views
The __imp_ indicates that the caller thinks that the module is built into a DLL - is that the case? You need to ensure that the "import library" from the DLL project is linked in with the executable project. This happens automatically when the DLL project is made a dependent of the executable project, with one exception, that being a C/C++ executable project and VS2005. If you're using that combination, you will have to manually add the Fortran .lib to the C/C++ project or the linker "additional dependencies" field.
0 Kudos
Reply