我正在尝试在Visual Studio项目中使用Basler-Pylon 5 SDK。我缺少什么步骤?
当前,我已经从他们的网站https://www.baslerweb.com/en/sales-support/downloads/software-downloads/pylon-5-2-0-windows/下载了该软件套件。然后,我进入了视觉工作室,并通过了普通的链接器,并包括其他目录步骤。但是,在包含必要的头文件并将命名空间添加到程序之后,我的程序将无法编译。我什至尝试将运行时文件中的dll添加到链接器选项卡下的输入中,但这似乎没有任何作用。此外,我在编译器中遇到的错误没有任何意义,并且与sdk无关。
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\combaseapi.h(202): error C2143: syntax error: missing ')' before '('
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\combaseapi.h(202): error C2206: 'IID_PPV_ARGS_Helper': typedef cannot be used for function definition
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\combaseapi.h(202): error C2059: syntax error: ')'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(82): error C2059: syntax error: '('
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(82): error C2059: syntax error: 'constant'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(82): error C2059: syntax error: ','
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(82): error C2238: unexpected token(s) preceding ';'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(448): error C2059: syntax error: '('
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(448): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(448): error C2059: syntax error: 'constant'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(448): error C2059: syntax error: ','
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\shared\wtypes.h(448): error C2238: unexpected token(s) preceding ';'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(128): error C2988: unrecognizable template declaration/definition
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(128): error C2059: syntax error: '('
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(128): error C2059: syntax error: ','
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(129): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(318): error C2989: 'AsyncIUnknown': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(51): note: see declaration of 'AsyncIUnknown'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(452): error C2989: 'IClassFactory': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\unknwn.h(58): note: see declaration of 'IClassFactory'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(825): error C2143: syntax error: missing ';' before 'identifier'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(825): warning C4091: 'typedef ': ignored on left of '_COSERVERINFO' when no variable is declared
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(908): error C2989: 'IMarshal': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(44): note: see declaration of 'IMarshal'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1060): error C2989: 'INoMarshal': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(51): note: see declaration of 'INoMarshal'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1130): error C2989: 'IAgileObject': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(58): note: see declaration of 'IAgileObject'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1212): error C2143: syntax error: missing ';' before 'identifier'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1212): warning C4091: 'typedef ': ignored on left of 'tagACTIVATIONTYPE' when no variable is declared
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1228): error C2989: 'IActivationFilter': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(65): note: see declaration of 'IActivationFilter'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1309): error C2989: 'IMarshal2': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(72): note: see declaration of 'IMarshal2'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1488): error C2989: 'IMalloc': class template has already been declared as a non-class template
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(79): note: see declaration of 'IMalloc'
1>c:\program files (x86)\windows kits\10\include\10.0.17763.0\um\objidl.h(1616): error C2989: 'IStdMarshalInfo': class template has already been declared as a non-class template