PDA

View Full Version : Visual Studio: Build error with -SPLIT compiler option


Lahey Support
10-14-2003, 08:15 PM
Visual Studio: Build error with -SPLIT compiler option

Lahey issue number: 109-96802

<hr>
The information in this post applies to:

LF Fortran v7.0 Enterprise edition
LF Fortran v7.0 Professional edition

Symptoms

Cannot build successfully in Visual Studio when the -SPLIT option is specified, or when the compile is automatically restarted with the -SPLIT option after a 8694-U error. Build error like:
LIB : fatal error LNK1181: cannot open input file "progname00003.obj"
occurs.

Cause

The -SPLIT option is incompatible with the -O option. The -O <obj-name> option is always generated by the Visual Studio build system for building Fortran Win32 projects.

Workaround

Do not specify the -SPLIT option if it is not necessary. If compile is
being automatically restarted with -SPLIT, divide your source into
multiple source files in the project, or build from the command-line.

Status

To be fixed in v7.1 release.