T
T
tj572019-04-28 00:25:42
C++ / C#
tj57, 2019-04-28 00:25:42

How to fix "LNK1112 module machine type 'x64' conflicts with target machine type 'x86'" error when running OpenCV in VS17?

After installing and configuring OpenCV under Visual Studio 2017, I get error LNK1112 (in question title). I tried to fix it according to this guide: https://stackoverflow.com/questions/3563756/fatal-... The error did not go away, but at first the .lib file is displayed in the error text: opencv_world410d.lib , and after the steps taken, .obj is displayed file. If you change the platform to x64 in the configuration manager, then the application stops seeing the included library files:
5cc56df9cdb8e014405308.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2019-04-28
@myjcom

https://docs.microsoft.com/en-us/cpp/error-message...
https://docs.microsoft.com/en-us/cpp/build/how-to-...
Or vice versa . x86

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question