Windows下cscope:can't find the source file
2015-07-08 17:20
411 查看
在windows下使用cscope的时候遇到这样一个问题,使用
find命令使用的是Gunwin32 的find.exe
生成cscope.filse后使用
希望生成cscope.out文件
但是返回的却是
cscope : can’t find source file
身边正好有一台服务器,
在服务器上使用上诉命令却没有问题.
然后将在windows上的cscope.files拷贝到服务器张依然出现
cscope : can’t find source file
但是将服务器上的cscope.files拷贝到本地,
执行cscope -b却没有问题,成功生成 cscope.out
仔细比较两个cscope.files发现,windows下通过powershell生成的cscope.files是GBK格式,而服务器上为utf8;
期望的解决方法:
1.将powershell的编码格式改为utf8
2.使用powershll生成utf8格式的文件
第一中方法没有找到实现方式
第二种方法的实现如下:
find -name “.c” -o -name “.cpp” | set-content -encoding utf8 cscope.files
find -name "*.c" -o -name "*.cpp" >> cscope.files
find命令使用的是Gunwin32 的find.exe
生成cscope.filse后使用
cscope -b
希望生成cscope.out文件
但是返回的却是
cscope : can’t find source file
身边正好有一台服务器,
在服务器上使用上诉命令却没有问题.
然后将在windows上的cscope.files拷贝到服务器张依然出现
cscope : can’t find source file
但是将服务器上的cscope.files拷贝到本地,
执行cscope -b却没有问题,成功生成 cscope.out
仔细比较两个cscope.files发现,windows下通过powershell生成的cscope.files是GBK格式,而服务器上为utf8;
期望的解决方法:
1.将powershell的编码格式改为utf8
2.使用powershll生成utf8格式的文件
第一中方法没有找到实现方式
第二种方法的实现如下:
find -name “.c” -o -name “.cpp” | set-content -encoding utf8 cscope.files
相关文章推荐
- 菜鸟说给菜鸟听之VIM--入门篇(1)
- cygwin下vim方向键不好用的解决方案
- 安装使用Ubuntu之vim必须知道的细节
- Ruby学习笔记二帮助生成Vim添加代码头的代码
- ruby开发vim插件小结
- VIM中设置php自动缩进为4个空格的方法详解
- Vim命令高级用法
- linux Vim基本操作方法
- 使用python开发vim插件及心得分享
- linux系统中使用Vim删除偶数行或者奇数行
- Mac 配置VIM插件 提示"E492:Not an editor command:^M"
- vim配置文件
- vim的配置(自动缩进,语法高亮等)
- VIM 去掉~M符号
- ctags --- 每天一个 Linux 命令
- 用Vim订阅OSChina RSS
- vim与emacs脚本编程对比
- 手把手教你把Vim改装成一个IDE编程环境(图文)[转]
- Vim的配置
- 源码安装 vim