LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc120-mt-sgd-1_63.lib'
前言
编译一个cm时,用到了boost, 先试了boost_1_34_1, vc6编译不过去, 明显语法不支持.
下载了最新的boost版本boost_1_63_0, 用vs2013编译.
进入vs2013命令行, 进入D:\boost_1_63_0, 执行bootstrap.bat
再执行.\b2
编译后,连接进cm工程, 设置包含路径和库路径.
包含路径 : D:\boost_1_63_0
库路径 : D:\boost_1_63_0\stage\lib
编译cm工程, 提示LINK : fatal error LNK1104: cannot open file ‘libboost_filesystem-vc120-mt-sgd-1_63.lib’.
查到一份资料, 说明如何编译-sgd-.lib.
写了一个脚本来编译.
记录
echo off
rem @filename : myB2.batrem LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc120-mt-sgd-1_63.lib'rem You'd need to have runtime-link=static runtime-debugging=on variant=debug in the b2 command line args to get sgd.rem Key | Use this library when: | Boost.Build option
rem =====================================================================================
rem s | linking statically to the C++ standard library and | runtime-link=static
rem | compiler runtime support libraries. |
rem -------------------------------------------------------------------------------------
rem g | using debug versions of the standard and runtime | runtime-debugging=on
rem | support libraries. |
rem -------------------------------------------------------------------------------------
rem y | using a special debug build of Python. | python-debugging=on
rem -------------------------------------------------------------------------------------
rem d | building a debug version of your code. | variant=debug
rem -------------------------------------------------------------------------------------
rem p | using the STLPort standard library rather than the | stdlib=stlport
rem | default one supplied with your compiler. |rem build libboost_filesystem-vc120-mt-sgd-1_63.lib
.\b2 runtime-link=static runtime-debugging=on variant=debugecho on
运行myB2.bat, 编译成功后, 有了libboost_filesystem-vc120-mt-sgd-1_63.lib.
再编译cm工程,编译成功了.
LINK : fatal error LNK1104: cannot open file 'libboost_filesystem-vc120-mt-sgd-1_63.lib'相关推荐
- 完美解决LINK : fatal error LNK1104: cannot open file Debug/xx.exe的问题
问题: 运行VC时总出现 Linking- LINK : fatal error LNK1104: cannot open file "Debug/xx.exe" Erro ...
- LINK : fatal error LNK1104: cannot open file mfc42d.lib
VC++6.0上建立了个基于MFC应用程序,在编译时候没出现错误,但在LINK的是时候出现这样的错误: Linking... LINK : fatal error LNK1104: cannot op ...
- VS2017 LINK : fatal error LNK1104: cannot open file ‘atls.lib‘错误解决方案
用VS 2008编写ATL的64位应用程序时,提示链接错误: VS2008 LINK : fatal error LNK1104: cannot open file 'atls.lib' 问题原因 V ...
- VS2008 LINK : fatal error LNK1104: cannot open file 'atls.lib'错误解决方案
用VS 2008编写ATL的64位应用程序时,提示链接错误: VS2008 LINK : fatal error LNK1104: cannot open file 'atls.lib' 问题原因 V ...
- LINK : fatal error LNK1104: cannot open file “kernel32.lib
场景: 使用 VC6.0English 软件时,提示:LINK : fatal error LNK1104: cannot open file "kernel32.lib. 解决方案 配置 ...
- window+cmd+.cpp(window系统命令行运行.cpp文件) + LINK : fatal error LNK1104: cannot open file ‘LIBCMT.lib‘
在window系统中,命令行运行.cpp文件的步骤(假定已经安装好visual studio 2015): 1. 设置环境变量:C:\Program Files (x86)\Microsoft Vis ...
- LINK : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因又一例
LINK : fatal error LNK1104: 无法打开文件"mfc71.lib"的原因一例 http://blog.csdn.net/mxclxp/article/det ...
- LINK : fatal error LNK1104: 无法打开文件“mfc71.lib”的原因一例
LINK : fatal error LNK1104: 无法打开文件"mfc71.lib"的原因一例 [环境] 日文Windows XP OS 中文Visual Studi ...
- 编译问题解决:LINK : fatal error LNK1104: 无法打开文件“*.dll”
一.引言 编译项目的时候,总会遇到些奇怪的问题,比如说以下这种: LINK : fatal error LNK1104: 无法打开文件"..\bin\utilitiesd.dll" ...
最新文章
- SVG.js 基础图形绘制整理(二)
- oracle 中表,oracle中表操作
- Ubuntu下如何将普通用户提升到root权限
- 投毒、伪装、攻击,DNS 欺骗和钓鱼网站如何一步步诱人掉入陷阱?
- 网络安全模型_工业互联网态势感知,看得见的网络安全
- 服务器的作用及用途,服务器的作用和用途是什么
- 软件应用:HexorBase Tool 实战测试!
- (2)从文件中解析JSON数据
- 用户生命周期,从运营到数据的最全攻略在这里
- 多功能芯片——GSV2002
- python输入个人所得税计算_分享一下python的个税计算代码
- vue 中的const {XXX } =this 的作用效果
- xshell 基本操作
- 物竞天择2 NS2 -MOD制作教程 -制作工具
- 获取图片上任意一点的颜色值
- jQuery属性操作之.val()
- java绘图技术,演示绘制不同的图形
- 容大电子秤传称_容大条码秤的传秤配置(旧版)
- 大数据时代的知识图谱
- 厨子与大厨:伊隆·马斯克的独家配方(下)
热门文章
- css background-image 背景图片自适应宽高
- 强化学习之多臂老虎机(Multi-Armed-Bandit)问题
- 变基的风险以及如何用变基解决变基
- 【编解码】从零开始写H264解码器(4) 熵编码之指数哥伦布编码
- java项目总结范文_java工程师年终总结及明年计划范文
- linux编程用到什么编程语言,学好编程第一步,你得学会用什么工具来提高编写效率...
- 爬取糗事百科段子(xpath)
- 一花一世界 一树一菩提
- Matlab使用笔记(三):matlab设置代码自动补全功能
- linux 下的source命令的作用是什么?