pc文件编译后链接错误(mingw)
mingw+window+oracle9i环境
链接错误:
common/DBHandlerImpl.o:DBHandlerImpl.cpp:(.text+0x4966): undefined reference to `sqlorat(void**, unsigned int*, void*)'
common/DBHandlerImpl.o:DBHandlerImpl.cpp:(.text+0x49ef): undefined reference to `sqlcxt(void**, unsigned int*, sqlexd*, sqlcxp const*)'
collect2: ld returned 1 exit status
找不到sqlcxt和sqlorat定义,应该链接哪个库?怎么链接?
我试过将$(oracle_home)\ora92\bin\orasql9.dll用pexports,dlltool工具转换为orasql9.a后链接,可以减少一部分,最后还剩上面连个错误。
请各位帮忙.