无法解析符号otl_connect(otl_connect类不包括)

时间:2021-01-26 21:54:56

I have been trying to connect to mysql using OTL_ODBC. I have included the OTL header file (otlv4.h) in my Visual Studio 2010 Project but when I try to use otl_connect, it displays the error "Cannot Resolve Symbol otl_connect", and the otl_connect class appears red in colour:

我一直在尝试使用OTL_ODBC连接到mysql。我在我的Visual Studio 2010项目中包含了OTL头文件(otlv4.h),但是当我尝试使用otl_connect时,它显示错误“无法解析符号otl_connect”,并且otl_connect类显示为红色:

无法解析符号otl_connect(otl_connect类不包括)

May I know where I'm doing it wrong?

我可以知道我做错了吗?

#define OTL_ODBC
#include "otlv4.h"
int main(int argc, char* argv[])
{
  otl_connect db;
}

1 个解决方案

#1


0  

otl_connect is inside namespace odbc. Try odbc::otl_connect.

otl_connect在命名空间odbc中。尝试odbc :: otl_connect。

#1


0  

otl_connect is inside namespace odbc. Try odbc::otl_connect.

otl_connect在命名空间odbc中。尝试odbc :: otl_connect。