LNK1112 on Directshow C ++ CLR项目 [英] LNK1112 on Directshow C++ CLR project

查看:222
本文介绍了LNK1112 on Directshow C ++ CLR项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从C ++重建一个程序在CLR C + +,我得到链接器错误

  1> strmbasd.lib (strmiids.obj):致命错误LNK1112:模块机器类型'x64'与目标机器类型'X86'冲突

我的项目设置为Win32,属性设置为目标机器x86。我不断重建基本类来匹配Win32,我不知道在哪里或为什么它失败的



Linker命令行看起来像:

  / OUT:C:\Users\ME\Documents\Code\X C ++ \Trial2\DirectshowC ++ \Debug\DirectshowC ++。exe / INCREMENTAL / NOLOGO / MANIFEST /MANIFESTFILE:\"Debug\DirectshowC++.exe.intermediate.manifest/ MANIFESTUAC:level ='asInvoker'uiAccess ='false'/ DEBUG / ASSEMBLYDEBUG / PDB:C:\Users \ME\Documents\Code\XC ++ \Trial2\DirectshowC ++ \Debug\DirectshowC ++。pdb/ SUBSYSTEM:WINDOWS / ENTRY:main/ DYNAMICBASE / FIXED:No / NXCOMPAT / MACHINE:X86 / ERRORREPORT:PROMPT strmiids.lib strmbasd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib 
\Windows\v6.0\Lib\x86作为链接器路径选项的第一个条目。显然,您应该修正路径以匹配系统上安装的文件夹。


i am trying to rebuild a program in CLR C++ from C++ and i get the linker error

1>strmbasd.lib(strmiids.obj) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

my project is set to Win32 and the properties are set to target machine x86. i keep rebuilding baseclasses to match the Win32 and I don't know where or why its failing

Linker command line looks like:

/OUT:"C:\Users\ME\Documents\Code\X C++\Trial2\DirectshowC++\Debug\DirectshowC++.exe" /INCREMENTAL /NOLOGO /MANIFEST /MANIFESTFILE:"Debug\DirectshowC++.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /ASSEMBLYDEBUG /PDB:"C:\Users\ME\Documents\Code\X C++\Trial2\DirectshowC++\Debug\DirectshowC++.pdb" /SUBSYSTEM:WINDOWS /ENTRY:"main" /DYNAMICBASE /FIXED:No /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT strmiids.lib strmbasd.lib  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

解决方案

I would try adding "C:\Program Files\Microsoft SDKs\Windows\v6.0\Lib\x86" as the first entry to the linker path option. Obviously you should fix up the path to match the installed folder on your system.

这篇关于LNK1112 on Directshow C ++ CLR项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆