Error with command: gdb --version Cannot run program "gdb": Unknown reason [message #1709073] |
Wed, 23 September 2015 14:44  |
Eclipse User |
|
|
|
Eclipse Luna on Mac Yosemite, CDT, XCode7.
HelloWorld with makefile:
- Copied from Eclipse Tutorial main.cpp and makefile for HelloWorld;
- Ran 'Build Project' and got the console:
"
11:39:25 **** Build of configuration Debug for project HelloWorldMakefile ****
make all
Building file: ../main.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
Finished building: ../main.cpp
Building target: HelloWorldMakefile
Invoking: MacOS X C++ Linker
g++ -o "HelloWorldMakefile" ./main.o
Finished building target: HelloWorldMakefile
11:39:25 Build Finished (took 330ms)
"
- Tried to run Debug, and got the error that 'gdb' cannot run.
Question:
Why no .exe file was built?
|
|
|
|
|
|
|
Re: Error with command: gdb --version Cannot run program "gdb": Unknown reason [message #1826367 is a reply to message #1709073] |
Fri, 24 April 2020 02:48  |
Eclipse User |
|
|
|
I had the same problem when I loaded
Catalina,
Eclipse Version: 2020-06 (4.16)
GDB, 9.1
I finally had to follow these instructions, which weren't all that easy to find, and differ slightly from above. (remove the spaces, as this is my first post and I wast stopped from posting links)
1). https: //superuser.com /questions
/1436370/how-to-codesign-gdb-on-os-x-mojave
2) enable root to set the self-signed-cert & entitlement for GDB
3) disable root after
Sam
|
|
|
Powered by
FUDForum. Page generated in 0.04124 seconds