调试问题:

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.的更多相关文章

  1. 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 ...

  2. 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 ...

  3. 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 ...

  4. 【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 ...

  5. 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 ...

  6. 关于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) ...

  7. 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 一般这种问题 ...

  8. xcode报错: 找不到路径或者资源错误:no such file or directory

    报错截图: 出现的问题: 运行项目页面图片不显示. 解决方法: 1>[COMMAND+shift+G],前往文件夹,输入:  ~/Library/Developer/Xcode/DerivedD ...

  9. GreenPlum执行gpfdist报错:libssl.so.1.0.0: cannot open shared object file: No such file or directory

    当你报这个错时,是因为你执行 ./gpfdist 时默认去找寻/usr/lib64的环境依赖,没有去找寻你gpfdist安装目录中lib的目录. 解决方法: 根据报错提示,将你gpfdist安装目录中 ...

随机推荐

  1. 转载:【Oracle 集群】RAC知识图文详细教程(五)--特殊问题和实战经验

    文章导航 集群概念介绍(一) ORACLE集群概念和原理(二) RAC 工作原理和相关组件(三) 缓存融合技术(四) RAC 特殊问题和实战经验(五) ORACLE 11 G版本2 RAC在LINUX ...

  2. LeetCode OJ:Maximal Square(最大矩形)

    Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and ret ...

  3. Datastage8.5导入导出DS作业例子

    以下为Datastage8.5的命令行方式的导入和导出,直接登陆服务器执行如下命令即可.不是Datastage客户端的导入和导出,使用命令行方式的好处是:可以将该命令使用shell脚本进行调用导入和导 ...

  4. C++实现设计模式之-装饰模式

    饰模式:动态地给一个对象添加一些额外的职责.就增加功能来说,装饰模式相比生成子类更为灵活.有时我们希望给某个对象而不是整个类添加一些功能.比如有一个手机,允许你为手机添加特性,比如增加挂件.屏幕贴膜等 ...

  5. iOS支付宝SDK回调那坑

    支付宝钱包支付接口开发包2.0标准版(iOS 2.2.1) ,回调不出来,demo给出的方法是: - (BOOL)application:(UIApplication *)application op ...

  6. HashMap resize代码详解(二)

    关于其中的resize方法如下: final Node<K,V>[] resize() { Node<K,V>[] oldTab = table; int oldCap = ( ...

  7. VPS安装metasploit-framework

    一.安装过程 在/etc/apt/sources.list添加kali源: root@localhost:~# cat >> /etc/apt/sources.list <<  ...

  8. APUE学习笔记——11 线程同步、互斥锁、自旋锁、条件变量

    线程同步     同属于一个进程的不同线程是共享内存的,因而在执行过程中需要考虑数据的一致性.     假设:进程有一变量i=0,线程A执行i++,线程B执行i++,那么最终i的取值是多少呢?似乎一定 ...

  9. 剑指offer--46.字符流中第一个不重复的字符

    双端队列 -------------------------------------------------------- 时间限制:1秒 空间限制:32768K 热度指数:113070 本题知识点: ...

  10. cookies分类

    Cookie总是保存在客户端中,按在客户端中的存储位置,可分为内存Cookie和硬盘Cookie. 内存Cookie由浏览器维护,保存在内存中,浏览器关闭后就消失了,其存在时间是短暂的.硬盘Cooki ...