警告LNK4099:如果文件存在,也找不到PDB'vc100.pdb' [英] warning LNK4099: PDB 'vc100.pdb' was not found also if the file is there

查看:476
本文介绍了警告LNK4099:如果文件存在,也找不到PDB'vc100.pdb'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Visual Studio编译Qt 4.8.6项目(我正在将Visual Studio插件用于Qt4.8.6).我在调试和发布模式(-debug-and-release)下无错误地静态(-static)编译了库.

I'm trying to compile a Qt 4.8.6 project with Visual Studio (I'm using the visual studio addin for Qt4.8.6). I compiled the libraries statically (-static) in debug and release mode (-debug-and-release) with no errors.

我收到这些错误:

QtGuid.lib(jaricom.obj):警告LNK4099:找不到带有'QtGuid.lib(jaricom.obj)'或在'C:\ MyProject \ debug \ vc100.pdb'的PDB'vc100.pdb';链接对象,好像没有调试信息 1> QtGuid.lib(jcapimin.obj):警告LNK4099:找不到与'QtGuid.lib(jcapimin.obj)'或在'C:\ MyProject \ debug \ vc100.pdb'的PDB'vc100.pdb';链接对象,好像没有调试信息一样

QtGuid.lib(jaricom.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'QtGuid.lib(jaricom.obj)' or at 'C:\MyProject\debug\vc100.pdb'; linking object as if no debug info 1>QtGuid.lib(jcapimin.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'QtGuid.lib(jcapimin.obj)' or at 'C:\MyProject\debug\vc100.pdb'; linking object as if no debug info

为什么会这样,我该如何解决?我不想忽略它.

Why is that and how do I solve it? I don't want to just ignore it.

推荐答案

首先,这些都是警告而不是错误,其次,您好像将Qt库的Debug版本与VC libs的发行档案链接了……Build Profile出了点问题……但这只是警告,如果您不需要VC组件的调试功能,则可以忽略此警告…. 如果您使用VS2010编译器,并且将使用Win SDK组件,并且您使用的VC之间的依赖关系,Qt的依赖关系(使用mingw !?编译)等都没有任何问题,只需下载Qt源文件,并使用VS对其进行编译,安装VS加载项并在VS中使用Qt ...

First of all these are warnings and not errors, secondly looks like you linking Debug version of Qt libraries with release profile of VC libs… Something wrong with Build Profile… But it is just warning, and if you don’t need debug facilities of VC components you can just ignore this warning…. If you use VS2010 compiler and will use win SDK components and to not have any kind of problems with dependencies between VC you use, dependencies of Qt(which is compiled with mingw!?) etc… Just download Qt sources, compile them with your VS, install VS Add-in and use Qt in in VS...

这篇关于警告LNK4099:如果文件存在,也找不到PDB'vc100.pdb'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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