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

debug compile and debugger 32 bit IA-32 ver 2021.12.0 package ID:w_oneAPI_2024.2.1.1083

billg5
Beginner
8 Views

Running windows 10; latest VS 2022 installation.

Must use 32 bit IFORT build.  In release mode I have two dll builds that build and appear to run correctly.

However I would like to build, and debug in 32 bit. The more complex dll builds but issues a warning PRJ018 $MLKInstalldir not found. Also although the dll build is the appropriate size it hangs in the debugger after its application starts up to the first red ball breakpoint.  The simpler dll issues a linker error when compiled in debug mode

 

fatal error LNK1169 one or more multiply defined symbols found

error LNK2005:_Cllog10 already defined in libmmt.lib(log10_iface_c99.obj) 

I have seen this error before  and it might be related to the includes and libraries on my x86 installation. 

In intel fortran XE 2019 which I no longer have access to, I cleared the error by explicitly adding C:\Program Files (x86) ...\Windows Kits\10\Lib\0.10xxx.xx\Ucrt\um or something similar to the end of the path, and I am hoping you ca provide me a similar solution for the 2024 compiler.   

 

I have---

Win32 libraries:

$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\lib\x86;
$(UniversalCRTSdkDir)Lib\$(UCRTVersion)\um\x86;
$(UniversalCRTSdkDir)Lib\$(UCRTVersion)\ucrt\x86;
$(IFortInstallDir)lib32;
$(MLKInstallDir)..\latest\lib32;
$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\atlmfc\lib\x86;
$(FrameworkSDKDir)lib

Includes:

$(UniversalCRTSdkDir)Include\$(UCRTVersion)\um;
$(UniversalCRTSdkDir)Include\$(UCRTVersion)\shared;
$(IFortInstallDir)opt\compiler\include32;
$(IFortInstallDir)opt\compiler\include;
$(MKLInstallDir)..\latest\include;
$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\atlmfc\include;
$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\include;
$(WindowsSdkDir)include\um;
$(WindowsSdkDir)include\shared;
$(FrameworkSDKDir)include

Executables

$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\bin\HostX86\x86;
$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\bin\HostX64\x64;
$(UniversalCRTSdkDir)bin\$(UCRTVersion)\x86;
$(UniversalCRTSdkDir)bin\x86;
$(IFortInstallDir)bin;$(VSInstallDir)Common7\ide;
$(VSInstallDir)Common7\Tools;
$(FrameworkDir)$(FrameworkVersion);
$(WindowsSdkDir)bin\x86;$(PATH)

Default Options

/Qlocation,link,"$(VSInstallDir)VC\Tools\MSVC\$(VCToolsVersion)\bin\HostX86\x86"

 

------>Can you help me get the 32 bit debug mode files compiled, and the debugger to work? I am not very familiar with working with these settings and need a full explanation if possible.

 

0 Kudos
0 Replies
Reply