c++ - eclipse CDT : 'can' t find a source file' while debugging

标签 c++ linux eclipse unicode eclipse-cdt

我使用 Eclipse 和 CDT 进行 C++ 开发。但是,我不得不在源文件的路径中使用 ASCII 符号来成功调试我的程序。当源文件位于名称中包含非英文字符的文件夹中时,Eclipse 会报错:

Can't find a source file at "/home/\321\202\320\265\321\201\321\202/1.cpp" Locate the file or edit the source lookup path to include its location.

是否有任何选项可以让 Eclipse 进行正确的 Unicode 处理?

最佳答案

也许将您的代码移动到位于根目录下的工作区,如/workspace/projectName/src/1.cpp

如果你不能找出确切原因并解决它,那么最好的办法就是规避...

关于c++ - eclipse CDT : 'can' t find a source file' while debugging,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9813402/

相关文章:

c++ - Counter int 在不询问的情况下递增

c++ - 如何将字符串与 chrono::milliseconds 连接起来?

c++ - 网格划分算法搞砸了 Triangulation_vertex_base_with_id_2

c - 遍历硬盘并确定给定 block 当前是否正在使用的最有效方法是什么?

linux - insmod : ERROR: could not insert module HelloWorld. ko: 不允许操作

java - 在 Eclipse 中调试时查找类的所有实例

c++ - 为 C++ 开发设置 Gedit

python - Windows xp 和 Linux 中的 Telnet 性能

eclipse - 如何设置 Eclipse CDT 来索引/解析 std 文件

java - Eclipse Helios 3.6.1 调试 View 评估表达式不可用