error LNK1112: The conflict between the module computer type "x64" and the target computer type "X86" has not been resolved. The conventional method on the Internet to modify the target computer type does not solve this problem

error LNK1112: The module computer type "x64" conflicts with the target computer type "X86"

After modifying the target computer type to "X64", an error still occurs:
The modification method is shown in the figure:Insert picture description here
Insert picture description here

error LNK1112: The module computer type "x86" conflicts with the target computer type "X64"

Then, after modifying the target computer type to "X64", an error still occurs: the
modification method is the same as the above.

error LNK1112: The module computer type "x64" conflicts with the target computer type "X86"

(This is exactly the same as the problem in the first step, which is strange)

1. I just changed the infinite loop. I thought that there might be an environment variable configuration error, but other programs are fine, but the HoughCircles program that detects circles is the only one that has a problem. So I checked the environment variables in detail and found no errors.
2. Check and find:
Insert picture description here
Edit the library directory and adjust the x64 position to the second position, and adjust the x86 position to the first position:
As shown in the figure before adjustment:
Insert picture description here
Insert picture description here
Insert picture description here
To sum up: I did not find the answer to this question on the Internet, and then I thought about it for a long time. A solution to this problem.

Guess you like

Origin blog.csdn.net/weixin_38684352/article/details/90407083