Windows下cscope:can't find the source file
来源:互联网 发布:aotudesk是什么软件 编辑:程序博客网 时间:2024/06/01 08:38
在windows下使用cscope的时候遇到这样一个问题,使用 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
0 0
- Windows下cscope:can't find the source file
- Can't find a source file at "ioputs.c"
- Proguard.cfg(the file can't find) 解决方法
- Can't find file *.pid, kill the Xvnc process manually
- Can't find model for source store
- gawk: fatal: can't open source file
- I can't find file `pzdr'
- Can’t find file mysql/host.frm
- Can't find file: './mysql/plugin.frm'
- 安装node.js和npm推荐版本的报错 can't find the npmlog file
- Can't open file 'folder/.svn/tmp/text-base/file.svn-base': The system cannot find the file specified的实用解决方法
- 解决:myeclipse 下配置tomcat 报错:Can't find the main class....
- Gentoo Linux下安装NVIDIA显卡驱动(NVIDIA installer can't find kernel source/build files)
- vncserver Can't find file /root/.vnc/192.168.1.3:1.pid You'll have to kill the Xvnc process manually
- Ubuntu下启动 Redis时, 提示 "Can't open the log file: Permission denied failed"
- dbstart提示:can't find init file for database问题解决
- mysql Can't find file: './mysql/host.frm'
- Can't find file '/WEB-INF/tiles-defs.xml'
- 第十一节 进程间通信
- Leetcode45:Intersection of Two Linked Lists
- php框架优秀框架laravel学习(-)
- sqlldr使用中遇到的字符集问题
- 关于提示框的小例子
- Windows下cscope:can't find the source file
- java基础--开发工具
- SHUTDOWN_MSG: Shutting down NameNode at java.net.UnknownHostException
- Tomcat --> Cannot create a server using the selected type
- 一个牛x的mock框架--Powermock
- [CAQ2]使用getRunningServices判断服务是否运行不好用
- 学堂在线C++进阶 编程题 10-2
- Razor模板引擎
- 关于socket阻塞与非阻塞情况下的recv、send、read、write返回值