报错:Can't find a source file at "xxxxx“Locate the file or edit the source lookup path to include its location.
调试问题:
Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c"
Locate the file or edit the source lookup path to include its location
解决:来自ECLIPSE的WIKI:
http://wiki.eclipse.org/CDT/User/FAQ#Debugging_C.2FC.2B.2B_Projects
DETAIL:
I'm using cygwin and when launching the debugger, it complains that it can't find the source file
You must provide a mapping from /cygdrive/c to c:/ (or whatever your drive letter is).
To do this,
From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add. From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: /cygdrive/c as the compilation path and c:/ as the local file system path. Select OK, OK, OK to finish the dialogs. Terminate the debug session and restart; it should find your source files now. This setting will apply to any debug sessions launched from this workspace.
You can also modify the settings in each individual launch configuration. --------------------- 作者:XiaoyuLin 来源:CSDN 原文:https://blog.csdn.net/xiaoyulin/article/details/3747384 版权声明:本文为博主原创文章,转载请附上博文链接!
C6678调试以及运行时报错Can't find a source file
秀才 331 points Muhua Chen Muhua Chen
我在跑自己写的helloworld以及CCS自带的6678的例子时
可以进行单步调试,但过程中多次出现
Can't find a source file at "/db/rtree/library/trees/xdcprod/xdcprod-q45/product/Linux/xdctools_3_24_05_45_eng/packages/xdc/runtime/Core-params.c" Locate the file or edit the source lookup path to include its location.
这类问题
并且点击运行,也会报错
Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c" Locate the file or edit the source lookup path to include its location.
我按照网上说的http://blog.csdn.net/xiaoyulin/article/details/3747384 1.From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button •Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add.
2.From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. 3.Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: •/cygdrive/c as the compilation path and •c:/ as the local file system path.
4.Select OK, OK, OK to finish the dialogs. 5.Terminate the debug session and restart; it should find your source files now 设置了映射路径,错误依然存在,请大家帮帮忙,非常感谢
秀才 331 points Muhua Chen Muhua Chen
2013-1-10 16:00 回复
4 个回复
榜眼 26965 points Allen Yin Allen Yin
2013-1-11 16:11
如图 edit source lookup路径
上述内容如果回答了您的问题,请点击标签栏“是”按钮。您的轻轻一点,会帮助我们更好的管理论坛内容,谢谢!
回复
秀才 331 points Muhua Chen Muhua Chen
2013-1-13 14:06
回复 Allen Yin:
您好,非常感谢您的回答。
点击Edit Source Lookup 进入后有多个添加选项,不知道该选哪一种,另外我并没有/tmp/TI_MKLIB6sLCzz/SRC/exit.c这个路径以及文件,该怎么处理?
回复
榜眼 26965 points Allen Yin Allen Yin
2013-1-14 9:50
回复 Muhua Chen:
exit函数式标准库自带的,你可以不用关注
上述内容如果回答了您的问题,请点击标签栏“是”按钮。您的轻轻一点,会帮助我们更好的管理论坛内容,谢谢!
报错:Can't find a source file at "xxxxx“Locate the file or edit the source lookup path to include its location.的更多相关文章
- idea报错。Error:Failed to load project configuration: cannot parse xml file E:\project\.idea\workspace.xml: Error on line 1: 前言中不允许有内容。
因为电脑卡死强制重启电脑后打开idea,进行junit单元测试报错: idea报错.Error:Failed to load project configuration: cannot parse x ...
- wamp下php报错session_start(): open(d:/wamp/tmp\sess_ku776hvb06ko4lv9d11e7mnfj1, O_RDWR) failed: No such file or directory
报错提示 session_start(): open(d:/wamp/tmp\sess_ku776hvb06ko4lv9d11e7mnfj1, O_RDWR) failed: No such file ...
- Spring报错:Exception in thread "main" java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>(Unknown Source)
简单搭建了一个Spring Maven工程就报错: 看到网上说是JDK 7 和 Spring3.x :JDK编译级别设置成1.7,仍然没有得到解决,采用版本为 3.2.0.RELEASE <b ...
- 【Android】Android import和export使用说明 及 export报错:jarlist.cache: Resource is out of sync with the file syst解决
在Android开发export项目时发现有时会报错,内容如下: Problems were encountered during export: Error exporting PalmIdent ...
- pycharm报错:ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory
pycharm报错:ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory ...
- 关于nginx配置的一个报错connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory)
针对配置php的情况: linux服务器一般提示这个 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) ...
- tf-gpu报错:ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
错误1:ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory 一般这种问题 ...
- xcode报错: 找不到路径或者资源错误:no such file or directory
报错截图: 出现的问题: 运行项目页面图片不显示. 解决方法: 1>[COMMAND+shift+G],前往文件夹,输入: ~/Library/Developer/Xcode/DerivedD ...
- GreenPlum执行gpfdist报错:libssl.so.1.0.0: cannot open shared object file: No such file or directory
当你报这个错时,是因为你执行 ./gpfdist 时默认去找寻/usr/lib64的环境依赖,没有去找寻你gpfdist安装目录中lib的目录. 解决方法: 根据报错提示,将你gpfdist安装目录中 ...
随机推荐
- ElasticSearch6.0 高级应用之 多字段聚合Aggregation(二)
ElasticSearch6.0 多字段聚合网上完整的资料很少 ,所以作者经过查阅资料,编写了聚合高级使用例子 例子是根据电商搜索实际场景模拟出来的 希望给大家带来帮助! 下面我们开始吧! 1. 创建 ...
- tornado源码分析系列一
先来看一个简单的示例: #!/usr/bin/env python #coding:utf8 import socket def run(): sock = socket.socket(socket. ...
- MongoDB中MapReduce不同的写法,不同的结果
MapReduce有两种写法,也可以说mongodb所有的命令行都有两种写法. 但突然间发现MapReduce不同的写法会有不同的结果,接下来我们一起来看: 第一种:直接使用扩展属性. 1)emit函 ...
- centos7环境配置
CentOS-7-64bit 配置Apache + MySQL + PHP :http://blog.itpub.net/29773961/viewspace-1261417/ 上面教程可以正常安装阿 ...
- jsp页面:js方法里嵌套java代码(是操作数据库的),如果这个js 方法没被调用,当jsp页面被解析的时候,不管这个js方法有没有被调用这段java代码都会被执行?
jsp页面:js方法里嵌套java代码(是操作数据库的),如果这个js 方法没被调用,当jsp页面被解析的时候,不管这个js方法有没有被调用这段java代码都会被执行? 因为在解析时最新解析的就是JA ...
- 【排序】希尔排序,C++实现
原创博文,转载请注明出处! 本文代码的github地址 # 基本思路 希尔排序是”直接插入排序“的改进版,也称为“缩小增量排序”.基本原理:先将待排序的数组元素分成多个序列,然后对每个子序 ...
- OC中使用单例模式
static Config * instance = nil; +(Config *) Instance { @synchronized(self) { if(nil == instance) { [ ...
- 关于C++一些面试题目的总结
众所周知,在找工作时笔试题目往往对C++有大量考察,现在我们总结一些C++中比较重要而且可能会考到的知识. 1.判断一下A,B,C,D四个表达式是否正确. int a = 4: A:a += (a + ...
- 全面进军javascript!
前两天经过新华书店,进去转了转,又买了两本书.这次买的是<javascript学习指南>和<HTML5经典实例>(都是图灵动物系列,我已经有三本了*^_^*),其实我是想去买& ...
- PCA最小平方误差理论推导
PCA最小平方误差理论推导 PCA求解其实是寻找最佳投影方向,即多个方向的标准正交基构成一个超平面. 理论思想:在高维空间中,我们实际上是要找到一个d维超平面,使得数据点到这个超平面的距离平方和最小 ...