![]() ![]() exe has succeeded (.exe created) using the ifort command-line: To avoid that, you would need to change the compiler flags, e.g.On Win 10, where I have Intel parallel studio XE 2020 integrated with MS visual studio community 2019, I'm trying to compile two fortran programs one for. ![]() configure will already look for the static version of MKL for your convenience, but, for example, using the dynamic version of the MSVC runtime library will remain to be the default. disable-shared only says that Ipopt should be build as a static lib, but doesn't say much about what dependencies to choose. Maybe I'm getting shared libs in there somewhere? I'm trying to build a totally static lib. They seem to manage that for libifcore vs libifcoremd. I guess getting a -nodefaultlib:libcpmt into the linker flags would work around these warnings, but the proper fix would be if ifort would come with a MD-variant of ifconsol.lib (e.g., a ifconsolmd.lib with directive -defaultlib:libcpmd) and use that when ifort is called with -MD. ![]() It looks like one of the Fortran runtime libraries (ifconsol.lib) brings in this dependency on libcmt:Ĭopyright (C) Microsoft Corporation. Ipo: warning #11087: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\4\lib\圆4\libcpmt.lib: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' does not match value 'MD_DynamicRelease' in C:\msys64\home\distrib\stefan\Ipopt\build-static2\test\./src/.libs/ipopt.lib. src/.libs/ipopt.lib C:/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_intel_lp64.lib C:/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_sequential.lib C:/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_core.lib src/.libs/ipopt.lib /c/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_intel_lp64.lib /c/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_sequential.lib /c/PROGRA~2/INTELS~1/COMPIL~2/windows/mkl/lib/INTEL6~1/mkl_core.libĬompile: ifort -I././test/./src/Interfaces -nologo -fpp -O2 -MD -Fehs071_f.exe hs071_f.obj. Libtool: link: /path/to/Ipopt/compile /path/to/Ipopt/compile ifort -I././test/./src/Interfaces -nologo -fpp -O2 -MD -o hs071_f.exe hs071_f.obj. libtool -tag=F77 -mode=link /path/to/Ipopt/compile /path/to/Ipopt/compile ifort -I././test/./src/Interfaces -nologo -fpp -O2 -MD -o hs071_f.exe hs071_f.obj. path/to/Ipopt/compile /path/to/Ipopt/compile ifort -I././test/./src/Interfaces -nologo -fpp -O2 -MD -c -o hs071_f.obj `cygpath -w 'hs071_f.f'` ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |