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

module machine type 'X86' conflicts with target machine type 'x64'

Brian_A_
Novice
617 Views
libcmt.lib(chkstk.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
Here is the list of libraries that I specify.
relap5$(NM).exe : lib\\envrl$(NM).lib lib\\graphics.lib \\
lib\\matpro$(NM).lib lib\\relap$(NM).lib relap\\relap5.$O \\
lib\\scdap$(NM).lib tpfh2o$(NM) tpfd2o$(NM)
$(f90) -nologo $(FFLAGS) $(FPSTOP) $(FL) -libs:qwin \\
relap\\relap5.$O lib\\relap$(NM).lib lib\\scdap$(NM).lib \\
lib\\matpro$(NM).lib lib\\filechck.lib lib\\envrl$(NM).lib \\
lib\\graphics.lib libifcoremt.lib libifport.lib libifcoremt.lib \\
libifport.lib libmmt.lib kernel32.lib ifqwin.lib gdi32.lib \\
user32.lib libirc.lib comdlg32.lib ifqw_mdi.lib libcmt.lib \\
imagehlp.lib opengl32.lib lib\\f90gl.lib lib\\f90glu.lib \\
lib\\f90glut.lib lib\\glut32.lib lib\\glu32.lib -link \\
-out:bin\\relap5.exe -nodefaultlib
Is there is different name for the libcmt.lib if compiling in 64bit mode?
0 Kudos
5 Replies
mecej4
Honored Contributor III
617 Views
> Is there is different name for the libcmt.lib if compiling in 64bit mode?

No, but the library paths have to be specified such that only the 64 bit versions of the libraries are found.
0 Kudos
Steven_L_Intel1
Employee
617 Views
You will often get this message if you convert a CVF project and then create an x64 configuration. Go to the Linker > Command Line property page and remove the /machine_type switch from Additional Options. Do this for all configurations - you don't need it.
0 Kudos
Brian_A_
Novice
617 Views
I do not have /machine_type specified.
0 Kudos
Brian_A_
Novice
617 Views
How do I specify the library path?
0 Kudos
TimP
Honored Contributor III
617 Views
libcmt should be taken care of for you if only one type of objects is present. Where you have the libgl stuff specified (probably in your project library setup in VS?) make sure that you point to the correct version. Make sure that everything you build is done with X64 project setting.
0 Kudos
Reply