报错: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安装目录中 ...
随机推荐
- ASP.NET经典权限解决方案,适用于OA、CRM、ERP、HR等应用系统
经典权限解决方案 1.权限简介 一般的管理系统都需要对用户的操作进行一定的限制,有的用户可以有许多操作,有的则有少量的操作.这样就需要一个授权机制,基于角色的授权机制描述了某个角色拥有一定数量的操作授 ...
- matlab eye 函数
eye(n,n) 产生一个n*n的单位矩阵 eye(n,m) 产生一个n*m的单位矩阵 eye(3,3) ans = 1 0 0 0 1 0 0 0 1 eye(3,4) ans = 1 0 0 0 ...
- python3 堆排序
思路: 1.建立堆 2.得到堆顶元素,为最大元素 3.去掉堆顶,将堆最后一个元素放到堆顶,此时可通过一次调整重新使堆有序. 4.堆顶元素为第二大元素. 5.重复步骤3,直到堆变空. 动画 代码: de ...
- ios入门第一天
写在两个@ 之间的为oc语言 之外的为c语言 访问权限一旦定义了一个 除非在重新定义一个 否则都是该类型的 如 @protected int i; int j; int l;int n; ...
- open()参数宏的意义 O_TRUNC
C语言中一些基本函数 int _open(char *pathname,int access)为读或写打开一个文件, 按后按access来确定是读文件还是写文件,access值见下表 ┌──────┬ ...
- SpringMVC札集(06)——转发和重定向
自定义View系列教程00–推翻自己和过往,重学自定义View 自定义View系列教程01–常用工具介绍 自定义View系列教程02–onMeasure源码详尽分析 自定义View系列教程03–onL ...
- ios 10.3下载 Xcode8配置支持 ios 10.3下载
一不小心,手机又升级了,哎
- iOS通讯录相关知识-浅析
本文来自于:贞娃儿的博客 http://blog.sina.com.cn/zhenwawaer 在开发一些应用中,我们如果需要iPhone设备中的通讯录信息.或者,需要开发通讯录相关的一些功能.那 ...
- tomcat错误:The page you tried to access (/manager/login.do) does not exist
今天在idea上跑一个项目,所有配置都正常,其他接口测试也正常.唯独“/manage/user”接口在测试的时候后台没反应,也就是程序根本没往下走,postman测试显示如下: 浏览器范围url连接显 ...
- ssh/scp免密码登录传输
# 本地服务器生成key(直接回车默认) ssh-keygen # 将key传输到要登录的服务器 ssh-copy-id -i /root/.ssh/id_rsa.pub root@IP地址 # 输入 ...