如何修复此错误,该错误在2013年Visual Studio上构建VirtualPlannetBuilder源
How to fix this error which comes building the VirtualplannetBuilder source on visual studio 2013?
我已经在Windows 10机器上安装了GDAL 1.11.4 32BIT和OPENSCENEGRAPH-3.4.0。
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLAllocConnect@8 referenced in function "public: int __thiscall CPLODBCSession::EstablishSession(char const *,char const *,char const *)" (?EstablishSession@CPLODBCSession@@QAEHPBD00@Z)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLAllocEnv@4 referenced in function "public: int __thiscall CPLODBCSession::EstablishSession(char const *,char const *,char const *)" (?EstablishSession@CPLODBCSession@@QAEHPBD00@Z)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLAllocStmt@8 referenced in function "public: __thiscall CPLODBCStatement::CPLODBCStatement(class CPLODBCSession *)" (??0CPLODBCStatement@@QAE@PAVCPLODBCSession@@@Z)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLColAttribute@28 referenced in function "public: int __thiscall CPLODBCStatement::CollectResultsInfo(void)" (?CollectResultsInfo@CPLODBCStatement@@QAEHXZ)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLColumns@36 referenced in function "public: int __thiscall CPLODBCStatement::GetColumns(char const *,char const *,char const *)" (?GetColumns@CPLODBCStatement@@QAEHPBD00@Z)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLConnect@28 referenced in function "public: int __thiscall CPLODBCSession::EstablishSession(char const *,char const *,char const *)" (?EstablishSession@CPLODBCSession@@QAEHPBD00@Z)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLDescribeCol@36 referenced in function "public: int __thiscall CPLODBCStatement::CollectResultsInfo(void)" (?CollectResultsInfo@CPLODBCStatement@@QAEHXZ)
1>gdal.lib(cpl_odbc.obj) : error LNK2019: unresolved external symbol _SQLDisconnect@4 referenced in function "public: int __thiscall CPLODBCSession::CloseSession(void)" (?CloseSession@CPLODBCSession@@QAEHXZ)
您需要与适当的库链接。我似乎记得您在这种情况下需要ODBC32.lib
或ODBCCP32.lib
或两个库。
这是关于如何添加其他库的答案。
相关文章:
- Visual Studio mkl_link_tool.exe链接错误
- 尝试使用继承和模板实现CRTP.Visual Studio正在生成编译器错误
- 设置 Visual Studio for MPI: 找不到标识符错误
- 将QT项目导入Visual Studio 2019会给我带来很多LNK2001错误
- 第三方 API 中的编译错误 - Visual Studio
- 在函数中使用 const int size 参数创建数组会在 Visual Studio 中抛出错误 C++:表达式的计
- 使用Visual Studio在虚幻引擎中创建一个新的类c ++给了我太多的错误
- Visual Studio 2019在内置库中存在错误
- Visual Studio 2017 中的 QtMetaObject 未解决的外部错误
- Visual Studio中的wxwidgets应用程序给出错误"LNK2019 unresolved external symbol"
- 包含在 <WinSock2> Visual Studio 2015 中时出现错误
- 编译器错误(英特尔并行工作室 2019 与 Visual Studio 社区 2019)
- 默认/样板代码在Visual Studio 2017中给我错误.E1574.虚幻.但构建成功了
- Visual Studio 2013,错误 MSB8020:找不到 Visual Studio 2010 的生成工具
- 如何在类模板的成员函数中正确调用函数对象?正在生成 Visual Studio 编译器错误 C2440
- C++ Visual Studio 错误:名称后跟'::'必须是类或命名空间名称 (DirectX 11)
- 错误C++在Visual Studio 2019中使用numeric_limits的长双精度最小值/最大值
- 如何解决Visual Studio C++ 'xmemory'文件中的错误?
- Microsoft Visual Studio 2019交叉编译CMake库 - 有效,但存在SEG错误
- 使用Visual Studio 2012编译时,此代码会给我错误,但是使用代码块就可以了