Link Problems

Describes the common Unresolved _mFgmain - PL/I link problem and its resolution.
Note: This topic applies to Windows environments only.

When you receive an Unresolved _mFgmain - link failure such as this:


_mFgmain error

It usually means that a non-main PL/I program (e.g., a program that does not include OPTIONS(MAIN)) is attempting to link into a dynamic link library (DLL).

Solution: Instead of linking to a DLL, link non-main PL/I programs into other programs statically, and call them directly.