致命错误 LNK1104:无法打开文件“libboost_system-vc90-mt-gd-1_43.lib"

fatal error LNK1104: cannot open file #39;libboost_system-vc90-mt-gd-1_43.lib#39;(致命错误 LNK1104:无法打开文件“libboost_system-vc90-mt-gd-1_43.lib)

本文介绍了致命错误 LNK1104:无法打开文件“libboost_system-vc90-mt-gd-1_43.lib"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新建一个项目,添加main.cpp并在此URL编写代码:

Made a new project, added main.cpp and wrote the code at this URL:

http://www.boost.org/doc/libs/1_43_0/doc/html/boost_asio/example/echo/async_tcp_echo_server.cpp

另外,添加了适当的包含路径.

Also, added the appropriate include path.

接下来是什么?!?!构建 boost 代码似乎是个谜!

What's next?!?!! It seems like a darn mystery to build a boost code!

已经挖掘了 10 多个小时.

Been digging on it for more than 10 hours.

谁能直接回答如何从windows、VC9下的代码构建boost库?

Can anyone give a straightforward answer on how to build the boost library from the code under windows, VC9?

推荐答案

你需要使用 bjam.它负责创建您的应用程序将使用的库.使用 bjam 后,您将需要指示您的项目包含 lib 文件.您可以通过进入项目的属性 -> 配置属性 -> 链接器 -> 常规来完成此操作.将创建 lib 文件的目录添加到其他库目录.之后您应该能够正确链接.我相信 这个链接 比我在帖子中尝试的更好地描述了这些步骤

You need to use bjam. It is responsible for creating the libraries that your application will use. Once you use bjam, you are going to need to instruct your project to include the lib file. You do this by going into the project's properties -> Configuration Properties -> Linker -> General. Add the directory which created the lib file to Additional Library Directories. You should be capable of correctly linking after that. I believe that this link describes the steps better than I could attempt in a post

这篇关于致命错误 LNK1104:无法打开文件“libboost_system-vc90-mt-gd-1_43.lib"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:致命错误 LNK1104:无法打开文件“libboost_system-vc90-mt-gd-1_43.lib"

基础教程推荐