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)
问题描述
新建一个项目,添加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"


基础教程推荐
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01