我使用 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/