Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x64 not working #17

Closed
dorin-ionita opened this issue Aug 3, 2018 · 6 comments
Closed

x64 not working #17

dorin-ionita opened this issue Aug 3, 2018 · 6 comments

Comments

@dorin-ionita
Copy link

It seems that the .lib files created as per the video tutorial you provided are x86. Is there anyway to make them work within a x64 project?

@dorin-ionita
Copy link
Author

More precisely, VS 2017 says "module machine type 'x86' conflicts with target machien type 'x64'", with regard to jrtplib_d.lib

@j0r1
Copy link
Owner

j0r1 commented Aug 4, 2018

You need to tell cmake to create x64 code, see e.g. https://cmake.org/cmake/help/v3.12/generator/Visual%20Studio%2015%202017.html

@dorin-ionita
Copy link
Author

Did as you say and when trying to build jthread in Visual Studio it says module machine type 'x64' conflicts with target machine type 'x86' for file jmutex.obj

@j0r1
Copy link
Owner

j0r1 commented Aug 6, 2018

Yes, you need to build an x64 version of jthread as well, and make sure that version is used for linking

@dorin-ionita
Copy link
Author

That happens when I try to build jthread.

@dorin-ionita
Copy link
Author

dorin-ionita commented Aug 6, 2018

Solved. Thanks.

For the record, in case anybody faces this problem in the future:
I guess I wasn't doing all the settings for x64 in CMake. I didn't have to add any other Entry by clicking "Add Entry", CMake asked me for a generator anyway and I selected x64 there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants