- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
first sorry for my not so good english.
I have a strange effect here using the IFX compiler. I have a project that was for long time now changed from win32 to x64 target using IFORT.
Now I wanted to change to IFX but a static library does not build.
I want to use a C++ dll (WrapCLR.dll) in my static library, that is also configured as target x64.
The output of the build is:
Creating library...
WrapCLR.dll: file machine type x86 conflicts with library machine type x64 (inferred from earlier file 'x64\Release/SARSTF.obj')
Objekt : error PRJ0019: A tool returned an error code
Build log written to "file://C:/Users/Torsten.Kraemer/source/repos/seilmechanik/GH263/objekt/x64/Release/BuildLog.htm"
Objekt - 1 error(s), 4 warning(s)
========== Alles neu erstellen: 3 erfolgreich, 1 fehlerhaft, 0 übersprungen ==========
The last part of BuildLog is:
Creating library...
Creating temporary file "RSP1.rsp" with contents
[
/OUT:"x64\Release\Objekt.lib" /NOLOGO -qnextgen -qm64 "x64\Release/SARSTF.obj" "x64\Release/GROT2D.obj" "x64\Release/FlaFail.obj" "x64\Release/SCLIE2.obj" "x64\Release/SABNDL.obj" "x64\Release/Trafos.obj" "x64\Release/mod_ExtIdx.obj" "x64\Release/mod_GLOB_PARAMS.obj" "x64\Release/mod_ObjProbleme.obj" "x64\Release/mod_DatKriechZeitProt.obj" "x64\Release/mod_SlcHlp.obj" "x64\Release/mod_DatDeltaTZeitVorgab.obj" "x64\Release/IMSL_HLP.obj" "x64\Release/mod_LTGVAR.obj" "x64\Release/mod_FileHlp.obj" "x64\Release/mod_HalbVerankKett.obj" "x64\Release/mod_EPE.obj" "x64\Release/mod_FlAbs.obj" "x64\Release/mod_KettBruch.obj" "x64\Release/mod_PhaHlp.obj" "x64\Release/mod_LeiterIso.obj" "x64\Release/mod_SeilKriech.obj" "x64\Release/mod_KapHlp.obj" "x64\Release/mod_ZstdHlp.obj" "x64\Release/mod_CalcHlp.obj" "x64\Release/mod_AuslegTemp.obj" "x64\Release/mod_PhaErgSLC.obj" "x64\Release/mod_SeilNeig.obj" "x64\Release/mod_CalcTP.obj" "x64\Release/ZTAUSCH.obj" "x64\Release/TerminatesObj.obj" "x64\Release/PHAALT.obj" "x64\Release/LESSLG.obj" "x64\Release/GPHA69.obj" "x64\Release/GELABS.obj" "x64\Release/SABSTA.obj" "x64\Release/PHAKRB.obj" "x64\Release/LESOBJ.obj" "x64\Release/HELPERS_OBJ.obj" "x64\Release/FFLABS.obj" "x64\Release/ADD_BAUTOL.obj" "x64\Release/PSCHNT.obj" "x64\Release/PHAV69.obj" "x64\Release/LESPHZ.obj" "x64\Release/DPHAAUS4.obj" "x64\Release/WRISLCO.obj" "x64\Release/SAWTYP.obj" "x64\Release/PhasAbstdZusLstFall.obj" "x64\Release/LESPHA.obj" "x64\Release/GSCHNT.obj" "x64\Release/FFLABL.obj" "x64\Release/BKTRMM.obj" "x64\Release/SEILAH.obj" "x64\Release/PHAAUS.obj" "x64\Release/LTGDLT.obj" "x64\Release/KKETGP.obj" "x64\Release/FSTRAB.obj" "x64\Release/D2FLE7.obj" "x64\Release/SVLERG.obj" "x64\Release/PhAFldMitHD.obj" "x64\Release/KrzObjBerech.obj" "x64\Release/HelpersLtgKrz.obj" "x64\Release/GETSLG.obj" "x64\Release/GETPHA.obj" "x64\Release/DPHAAUS2.obj" "x64\Release/DPHAAUS1.obj" "x64\Release/WRIPHZ.obj" "x64\Release/TRFFLD.obj" "x64\Release/PHASABST.obj" "x64\Release/LTGDALT.obj" "x64\Release/GFLABL.obj" "x64\Release/GETLTG.obj" "x64\Release/DERGFO.obj" "x64\Release/WindAnlagen.obj" "x64\Release/PKTABSL.obj" "x64\Release/objektb.obj" "x64\Release/LTGAUS.obj" "x64\Release/IniPhaAbstd.obj" "x64\Release/FillMinAbstdArray.obj" "x64\Release/DERGKP.obj" "x64\Release/SEIKSS.obj" "x64\Release/LTGPRM.obj" "x64\Release/LESERG.obj" "x64\Release/INIBER.obj" "x64\Release/GetObjMSLink.obj" "x64\Release/DPHAAUS0.obj" "x64\Release/WRIPHA.obj" "x64\Release/WRIOBJ.obj" "x64\Release/PHAPHW.obj" "x64\Release/LTGAAT.obj" "x64\Release/GPHAPW.obj" "x64\Release/FLOPKT.obj" "x64\Release/D1PHA4.obj" "x64\Release/UVSEIL.obj" "x64\Release/MakeGelFlaeche.obj" "x64\Release/LTGKRB.obj" "x64\Release/LIABSD.obj" "x64\Release/INIKRE.obj" "x64\Release/FPKTAB.obj" "x64\Release/D1FLE7.obj" "x64\Release/WRISLG.obj" "x64\Release/SETPKT.obj" "x64\Release/ObjFail.obj" "x64\Release/KrzSeilVorgab.obj" "x64\Release/GPKTAB.obj" "x64\Release/GETSAM.obj" "x64\Release/dkrflpg.obj" "x64\Release/SEIPKTS.obj" "x64\Release/SEIKUR.obj" "x64\Release/NSEITE.obj" "x64\Release/KREFLD.obj" "x64\Release/GETSPL.obj" "x64\Release/FIXAUS.obj" "x64\Release/DatAllErg.obj" "x64\Release/wrislck.obj" "x64\Release/TESTLAGE.obj" "x64\Release/MinAbstd.obj" "x64\Release/LTGALT.obj" "x64\Release/HSEHNE.obj" "x64\Release/DPHAKOMP.obj" "x64\Release/AllMindAbstd.obj" "x64\Release/WRIERG.obj" "x64\Release/LTGLLT.obj" "x64\Release/LTGAST.obj" "x64\Release/LIABSL.obj" "x64\Release/GETPHZ.obj" "x64\Release/D2FLE7L.obj" "x64\Release/SEIKRS.obj" "x64\Release/PKTABSD.obj" "x64\Release/PHAPHA.obj" "x64\Release/KREREC.obj" "x64\Release/GPHAPH.obj" "x64\Release/GFLABS.obj" "x64\Release/DPHAAUS_Hlp.obj" "x64\Release/AUSFLPGK.obj" "x64\Release/SEIPKT.obj" "x64\Release/PKTABS.obj" "x64\Release/LIABS.obj" "x64\Release/GSTRAB.obj" "x64\Release/DPHABLAT.obj" "x64\Release/DPHAAUS6.obj" "C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\objekt\WrapCLR.lib" "C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\hfunc\x64\Release\hfunc.lib"
]
Creating command line "Lib @"C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\objekt\x64\Release\RSP1.rsp""
WrapCLR.dll: file machine type x86 conflicts with library machine type x64 (inferred from earlier file 'x64\Release/SARSTF.obj')
Objekt : error PRJ0019: A tool returned an error code
Objekt - 1 error(s), 4 warning(s)
And the output of building the c++ dll:
2>------ Neues Erstellen gestartet: Projekt: WrapCLR, Konfiguration: Release x64 ------
2>wrapCLR.cpp
2>.NETFramework,Version=v4.5.AssemblyAttributes.cpp
2>Code wird generiert...
2> Bibliothek "C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\bin\WrapCLR.lib" und Objekt "C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\bin\WrapCLR.exp" werden erstellt.
2>WrapCLR.vcxproj -> C:\Users\Torsten.Kraemer\source\repos\seilmechanik\GH263\bin\WrapCLR.dll
========== Alles neu erstellen: 2 erfolgreich, 0 fehlerhaft, 0 übersprungen ==========
Strange thing is, that when using IFORT all builds perfect (without changing anything in configuration)
More info about the project:
- The Static library must use the c++ dll as a wrapper to access the .net framework.
- The main project, that creates my exe-file also uses the same c++ dll and calls itself functions from the wrapper.
- When I just switch the main project to IXF and the static library to IFORT, all runs fine, means, even the main project has no problem to use the same dll as the static lib does.
I searched now allready for hours butt without success. Every project is configured to x64...
Any idea? Any hint would be very appreciated.
Ah, I forgot:
I still use visual studio 2019 and the compiler is 2024.1 from IntelOneAPI
Greetings
Torsten
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page