- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> 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.
No, but the library paths have to be specified such that only the 64 bit versions of the libraries are found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not have /machine_type specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I specify the library path?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page