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

Visual Fortran 6.6 and __imp___fpieee_flt error

chris-sn
Beginner
475 Views

I have been given a project developed using Compaq Visual FORTRAN 6.6.0. I am now using Compaq Visual FORTRAN 6.6.0 to compile the FORTRANcode within a VS2008 environment (the configuration type is an application .exe)

I get this error from linking:

1>msvcrt.lib(MSVCR90.dll) : error LNK2005: __imp___fpieee_flt already defined in dformd.lib(fix.obj)
1>.\\Debug/pipeline_calc.exe : fatal error LNK1169: one or more multiply defined symbols found1>Build log was saved at file://c:\\PipelineTrunk\\pipeline_calc\\Debug\\BuildLog.htm

I tried telling the VS2208 linker to ignore msvcrt but that just changed the error to

1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>.\\Debug/pipeline_calc.exe : fatal error LNK1120: 1 unresolved externals

I've found a few references to the error but not found one that I've been able to use, any help appreciated...

0 Kudos
1 Reply
Steven_L_Intel1
Employee
475 Views

Compaq Visual Fortran was never supported for use with VS2008 (especially as it stopped being developed in 2003.) It would appear that there is a conflict between the CVF-suppliied dformd.lib and the VS2008 msvcrt.lib. I have a faint memory of some issue related to this routine but don't remember any details.

Some suggestions I have:

1. Change the Fortran "Libraries" type to "Multithreaded" and not a DLL type.

2. Do the build from within the VS98 environment supplied with CVF.

3. (Recommended) Purchase and install Intel Visual Fortran which is supported with VS2008 and convert the project.

0 Kudos
Reply