|
Re: Debugger config -- CDT/gdb error [message #783698 is a reply to message #783496] |
Thu, 26 January 2012 08:49 |
Hagen Messages: 90 Registered: April 2010 |
Member |
|
|
On 1/25/2012 9:39 PM, brock peterson wrote:
> The program executes when I "run" the program, however, I am unable to
> debug the project. "/bin/bash:
> /home/brockmo/localWorkeclipseWork/Lottery/Default/Lottery: No such file
> or directory" ***note that [localWorkeclipseWork] is really a folder
> "eclipseWork" inside of the "localWork" folder.
>
> Has anyone overcome this error?
The correct pathname is not used (and therefore the file not found)
because something (e.g. Eclipse, or bash, or whatever you use)
"swallows" the directory delimiter between localWork and eclipseWork.
If you got your project from someone using Windows, you likely have
"localWork\eclipseWork" somewhere buried in your project settings.
This works on Windows, and may work internally for Eclipse, but will not
on the Unix command line (and we _are_ talking about the Unix command
line as soon as 'bash' is invoked).
Find this setting and replace it with "localWork/eclipseWork".
If it has to be kept Windows(tm) compatible, try to use at least
"localWork\\eclipseWork".
Background: On Unix, a lot of normal text processing functions regard
'\' as a "quote" character so you can enter special characters as '\n'
for CR or '\t' for TAB.
As a side effect, a single backslash becomes '\\'.
|
|
|
Powered by
FUDForum. Page generated in 0.05239 seconds