链接mysqlclient.lib的VC ++ 2008问题 [英] VC++2008 problems with linking mysqlclient.lib

查看:138
本文介绍了链接mysqlclient.lib的VC ++ 2008问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我在项目中使用mysql时遇到问题.链接时出现问题,错误如下:
-
-错误LNK2001:函数_search_default_file(File:mysqlclient.lib)中引用的未解决的外部符号__iob".
我读到这是因为文件是使用VC 6.0构建的(true),现在如何使用VC ++ 2008重建它?
PS
我的忽略特定库"看起来像这样的"libcmtd,libc,MSVCRT" ;.
有帮助吗?
提前谢谢!

Hi to all. I'm having problems with using mysql in my project. The problems appear when linking, errors like:
- "error LNK2001: unresolved external symbol __iob    (File:mysqlclient.lib)", and
-"error LNK2019: unresolved external symbol __iob referenced in function _search_default_file (File:mysqlclient.lib)".
I read that this is because file was build with VC 6.0 (true), how to rebuild it now using VC++2008?
P.S.
My 'Ignore Specific Library' looks like this "libcmtd,libc,MSVCRT".
Any help?
Thanks in advance!

推荐答案

我将忽略特定库"更改为"msvcrtd.lib"(仅),现在不再出现__iob错误,但只有一个陈述:
-错误LNK2019:函数中引用的未解析的外部符号__imp___resetstkoflw" ; bool __cdecl ATL :: __ ATL_SAFE_ALLOCA_IMPL :: _ AtlVerifyStackAvailable(unsign ed long)". (?_AtlVerifyStackAvailable @ _ATL_SAFE_ALLOCA_IMPL @ ATL @@ YA_NK @ Z)(文件:mysql_util.obj)"
???
I changed 'Ignore Specific Library' to 'msvcrtd.lib' (only) and now there is no more __iob error, but there is only one stating:
-"error LNK2019: unresolved external symbol __imp___resetstkoflw referenced in function "bool __cdecl ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailable(unsigned long)" (?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@ATL@@YA_NK@Z)    (File: mysql_util.obj)"
???


这篇关于链接mysqlclient.lib的VC ++ 2008问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆