简体   繁体   中英

Visual Studio trying to use 64bit C runtime lib when compiling for 32bit

When I try to compile my program I get the following error:

Error   226 error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'   C:\dev\VAVTC\AMI-Intel\AVTC\2012_06_DemoCode\ElansMatting\msvcprt.lib(MSVCP100.dll)

My target machine under Linker>Advanced is set to MachineX86 so I'm pretty lost.

Any thoughts would be greatly appreciated. :)

So I figured it out. :P

For some reason under Project Properties>VC++ Directories Library Directories had been set to the Amd64 Libs instead of the 32bit ones

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM