简体   繁体   English

一台机器上的一个项目中存在ADODB的链接器错误,而其他机器上没有。

[英]Linker errors with ADODB exist in one project on one machine, but not others

We have a large solution (195 projects) and on one of the projects I'm getting 17 linker errors (LNK2001 and LNK2019), however the source is checked out from subversion and nobody else on the team gets these errors. 我们有一个大型解决方案(195个项目),在一个项目中,我遇到17个链接器错误(LNK2001和LNK2019),但是从subversion检出了源,并且团队中没有其他人得到这些错误。 I've already verified that the project properties match up between computers, the only significant difference I know of is that I'm the only one on Windows 7 32-bit. 我已经验证了项目属性在计算机之间是否匹配,我知道的唯一重要区别是,我是Windows 7 32位系统上的唯一计算机。

All of the errors are in relation to methods with ADODB::_ConnectionPtr pConnection as the first parameter, if I take this out then the errors go away. 所有错误均与使用ADODB::_ConnectionPtr pConnection作为第一个参数的方法有关,如果我将其删除,则错误会消失。

I'm confused since this is the only machine having problems building the project, so I imagine no definitions need to be added to get this to work. 我很困惑,因为这是唯一一个在构建项目时遇到问题的机器,因此我想不需要添加任何定义就可以使它起作用。 There are other projects in this solution with similar ADODB::_ConnectionPtr method parameters that are compiling properly on my machine. 此解决方案中还有其他项目,它们具有类似的ADODB::_ConnectionPtr方法参数,可以在我的计算机上正确编译。

Any help is appreciated. 任何帮助表示赞赏。

Turns out the project properties in VS2005 didn't reflect the individual file properties. 事实证明,VS2005中的项目属性未反映单个文件的属性。 I had _MAKE_ADO_IMPORT_ as a preprocessor definition for the project, but it only showed up in 9 of the 12 cpp file properties. 我使用_MAKE_ADO_IMPORT_作为该项目的预处理程序定义,但它仅显示在12个cpp文件属性中的9个中。 I individually added it as a preprocessor definition to each file and the linker errors suddenly disappeared. 我单独将它作为预处理器定义添加到每个文件中,链接器错误突然消失了。

What confuses me more is the fact that this was checked out of subversion and was not the same on other developers' machines. 更让我感到困惑的是,这一事实是从Subversion签出的,并且在其他开发人员的机器上也不一样。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++ / VS 2012-多项目解决方案:一个项目中出现链接器错误,而另一个项目中没有 - C++ / VS 2012 - Multi-project solution: Linker errors in one project but not another Windows toast 未在一台机器上显示,但在其他几台机器上工作 - Windows toast is not shown on one machine but works on several others 头文件在一个项目中引发错误,但在另一个项目中不引发 - Header file throwing errors in one project, but not in another 我的项目中来自SDL2的链接器错误 - Linker Errors from SDL2 in my project C ++链接器错误:链接器不断尝试包含用于存在和失败的文件 - C++ Linker Errors: The Linker Keeps Trying to Include Files that Used to Exist and Fails 将一个标题包含到我的MVS项目中时出错 - Errors when including one header into my MVS project 模板链接器错误:未定义符号(链接器错误),但所有内容都在一个文件中 - Templates linker error: Undefined symbols (linker error), but everything in one file 相同的android cmake git项目可以在一台Ubuntu机器上很好地编译,但是即使整个项目相同,也不能在另一台Ubuntu机器上编译 - Same android cmake git project compiles well on one Ubuntu machine but does not compile on another Ubuntu machine even the entire project is the same Travis CI 报告 Vulkan 项目的 gcc-7 的 linker 错误 - Travis CI reports linker errors for gcc-7 for a Vulkan project 在我的项目中针对libunwind链接库时出现链接器错误 - Getting linker errors when linking against libunwind for a library in my project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM