fatal error LNK1104: 无法打开文件“PocoFoundation.lib”

yxy10072510329 2010-06-07 03:30:22
最近,我在使用poco c++ library,看完了POCO的文档后,首先我下载了这个版本的poco;
然后我复制了页面里的最后一段代码,贴到VS2008里面去运行,以便验证一下我使用POCO lib所必需的环境的是没问题的。

当然在这之前,选项-->项目和解决方案-->VC++目录-->包含文件 我也配置过了,
选项-->项目和解决方案-->VC++目录-->库文件我也配置了,只是我发现我下载的poco-1.3.6p2-all.zip里面根本就没有诸如:PocoNet.lib,PocoFoundation.lib等LIB文件。

然后就是调试的时候出现了上面的错误。

我想,所有的东西我都是在官网下的,不应该出现这样的错误啊,请教各位用过POCO的朋友,谢谢
...全文
1264 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
yxy10072510329 2010-06-07
  • 打赏
  • 举报
回复
好像有效果了,bin和lib里面已经有些东西了,谢谢mstlq,也谢谢其它顶贴,打酱油的朋友
ForestDB 2010-06-07
  • 打赏
  • 举报
回复
RTFM...
yxy10072510329 2010-06-07
  • 打赏
  • 举报
回复
好吧,先发一段时间试试,只是这文档读的太吃力了,谢谢了
mstlq 2010-06-07
  • 打赏
  • 举报
回复
既然楼主有vs2008,何不自己编译?
怎么编译,文档都一步一步告诉你了……

这是一个好机会,练习一下程序员应该具备的基本技能……
yxy10072510329 2010-06-07
  • 打赏
  • 举报
回复
恩,我才发现他是源码,请问有没有编译好的下呢,谢谢
mstlq 2010-06-07
  • 打赏
  • 举报
回复
楼主下载的是源码……
需要先编译,然后再使用……
怎么编译请看readme的内容
摘录部分如下

BUILDING ON WINDOWS
===================

Microsoft Visual Studio 7.1 (2003), 8.0 (2005) or 9.0 (2008) is required to build the
POCO C++ Libraries on Windows platforms. Solution and project files for all three versions
are included.
You can either build from within Visual Studio (Build->Batch Build->Select All;Rebuild)
or from the command line. To build from the command line, start the
Visual Studio .NET 2003 (or 2005/2008) Command Prompt and cd to the directory where you have
extracted the POCO C++ Libraries sources. Then, simply start the buildwin.cmd script
and pass as argument the version of visual studio (71, 80 or 90). You can customize
what is being built by buildwin.cmd by passing appropriate command line arguments to
it. Call buildwin.cmd without arguments to see what is available.

To disable certain components (e.g., NetSSL_OpenSSL or Data/MySQL) from the build,
edit the file named "components" and remove the respective lines.

Certain libraries, like NetSSL_OpenSSL, Crypto or Data/MySQL have dependencies
to other libraries. Since the build script does not know where to find the necessary
header files and import libraries, you have to either add the header file paths to
the INCLUDE environment variable and the library path to the LIB environment variable,
or you'll have to edit the buildwin.cmd script, where these environment variables can
be set as well.

In order to run the test suite and the samples, the top-most bin directory containing
the shared libraries must be in the PATH environment variable.

If you want to run the test suite or samples from within Visual Studio, we recommend that
you download and install the free Solution Build Environment for Visual Studio .NET 2003,
from <http://www.workspacewhiz.com/SolutionBuildEnvironmentReadme.html>.

You can then add the bin directory to the PATH environment variable in a .slnenv file,
using the following entry.

POCO_BASE=p:\poco
PATH=$(PATH);$(POCO_BASE)\bin

Of course you will have to change the path p:\poco so that it matches your environment.

IMPORTANT NOTE: Please make sure that the path to the directory containing the
POCO C++ Libraries source tree does not contain spaces. Otherwise, the Microsoft
message compiler will fail when building the Foundation library.
wade_2003 2010-06-07
  • 打赏
  • 举报
回复
是不是还有另外的文件你没有下啊?
VC编译中出现以下错误时: LINK : fatal error LNK1104: cannot open file 'uafxcwd.lib' 解决方法 1.菜单project-》settnigs-》link-》Object/Library modules:中添加uafxcwd.lib (win7下亲测可用) 2. 如果还是不行,选择vc的全部安装,而不是默认安装 如果是unicode,可以用vc盘修复一下vc,钩选相关项。 如果以上方法不行,可以试试下面的方法。 说明: uafxcwd.lib多见于VC6编译过程中,有时候会遇到“ fatal error LNK1104: cannot open file "uafxcwd.lib"”,意思是找不到uafxcwd.lib库文件,你可在此下载,存放在提示的路径下即可,若缺少这个文件而不修复的话,VC项目可能无法编译成功。如果系统提示“没有找到uafxcwd.lib”、“缺少uafxcwd.lib文件”或者无法加载uafxcwd.lib等提示信息,您需要下载uafxcwd.lib后,拷贝到提示的路径里或在系统内安装注册该文件即可。   安装及使用方法(仅供参考,本方法对BPL文件无效):   ①将下载解压的uafxcwd.lib文件复制到C:\Windows\System32系统目录下(请注意:Win7、Vista的系统目录请以实际为准);   ②打开“开始”菜单-选择“运行”,输入“regsvr32 uafxcwd.lib”,在接下来的窗口中按回车确认即可完成控件注册。   ③如果在运行某一软件或程序编译时提示缺少、没有找到uafxcwd.lib等类似提示,您可按照提示的路径将lib拷贝到指定目录即可,或者重新添加文件引用。

64,428

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧