PDA

View Full Version : LF95: Module program unit not resolved at link time.


Lahey Support
08-26-2003, 08:56 PM
LF95: Module program unit not resolved at link time.

Lahey issue number: 1004-96566

<hr>
The information in this post applies to:

LF Fortran v7.x Enterprise edition
LF Fortran v7.x Professional edition
LF Fortran v7.x Express edition
LF95 PRO, Standard and Express

Symptoms

If a module name is used in a DLL_EXPORT or DLL_IMPORT statement and the code is compiled with -g, the module name is not resolved at link time.

Linker produces:
error LNK2001: unresolved external symbol

Cause

A bug in the compiler is causing the module name to become case sesitive if upper case characters are used in module name of the MODULE statement and the module name is used in a DLL_IMPORT or DLL_EXPORT statement.

Workaround

Do not use upper case characters in the module name in the MODULE statement.

Status

Open.