• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] OS Error in Compile?

Status
Not open for further replies.

Portals

Banned
Okay so I am getting these errors

Code:
2>libboost_program_options-vc120-mt-1_59.lib(value_semantic.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
3>libboost_program_options-vc120-mt-1_59.lib(value_semantic.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

But the thing is my machine is a 64 bit OS as you can see here: http://prntscr.com/aq157j

Anyone have any idea on how to fix this, I have googled this but so far I have had no luck with any fix.
 

Tommy

Founder
Okay so I am getting these errors

Code:
2>libboost_program_options-vc120-mt-1_59.lib(value_semantic.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
3>libboost_program_options-vc120-mt-1_59.lib(value_semantic.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

But the thing is my machine is a 64 bit OS as you can see here: http://prntscr.com/aq157j

Anyone have any idea on how to fix this, I have googled this but so far I have had no luck with any fix.

That's not why it is complaining. It is most likely caused by having mixed boost libraries for both versions or you are compiling in X86 whereas your boost libs could be for x64 instead.
 

Portals

Banned
My boost paths are like this

C:/local/boost_1_59_0/lib64-msvc-12.0/libboost_filesystem-vc120-mt-gd-1_59.lib

For some reason I feel like that is the 32 bit and I might need the 64 bit?
 

Rochet2

Moderator / Eluna Dev
My boost paths are like this

C:/local/boost_1_59_0/lib64-msvc-12.0/libboost_filesystem-vc120-mt-gd-1_59.lib

For some reason I feel like that is the 32 bit and I might need the 64 bit?

It is most likely exactly the opposite. The path of your boost says "lib64"

What compiler did you choose in cmake?
Did you choose the one that explicitly states that it is 64 bit visual studio?
If you chose that one then you need the 64 bit boost as well.

Otherwise you need the normal 32 bit regardless of your OS. OS does not matter - it matters what you compile as.

Here is a visual of the 64 bit compiler selection:
http://prntscr.com/aq1ucy


Also make sure your boost is for the right compiler. According to the path you posted you should have Visual Studio 2013 (msvc 12)
 
Last edited:
Status
Not open for further replies.
Top