Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Issue Executing Simple Programs(Exec_tty error:Cannot run program )
Issue Executing Simple Programs [message #1807487] Fri, 31 May 2019 03:57 Go to next message
Michael Pope is currently offline Michael PopeFriend
Messages: 1
Registered: May 2019
Junior Member
I am in the process of setting up my Eclipse (4.11 for Mac OSX) C++ environment. Initially I ran simple Leet Code Scripts to work through simple problems. Previous to my issue I was able to build and run without any errors or complaints.
When trying to debug a small script I found that I was unable to start the debugger and an error message popped up. I then installed the GDB debugger by downloading it, creating a certificate, signing GDB certificate, and then configuring Eclipse. Now the debugging error has been fixed but I can no longer run my project or start the debugger due to the following error (which provides no help).

Error starting process.
Exec_tty error:Cannot run program "/Users/michaelanthonypope/Documents/GitHub/LeetCode-Scripts/C++/Exercises/Debug/main.o": Unknown reason
Exec_tty error:Cannot run program "/Users/michaelanthonypope/Documents/GitHub/LeetCode-Scripts/C++/Exercises/Debug/main.o": Unknown reason
Exec_tty error:Cannot run program "/Users/michaelanthonypope/Documents/GitHub/LeetCode-Scripts/C++/Exercises/Debug/main.o": Unknown reason

I have checked that my current project's toolchain is MacOSX GCC and the current builder is GNU Make Builder. Again I don't have any issues building, just executing the build.

Is it possible that I have messed with the execution settings while trying to solve my initial debugging problem? Any other information or settings you need I can provide by a screenshot if need be.

All help is welcome and thank you very much in advance.
Re: Issue Executing Simple Programs [message #1807651 is a reply to message #1807487] Wed, 05 June 2019 15:56 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
main.o is an object file.
It isn't executable.
It is used in creating an executable file.
You do this in Eclipse by building the project which will run make to create the executable.
It looks like you merely compiled your main program but didn't link it.

You really should familiarize yourself with how to build executables without Eclipse.
There are numerous tutorials on doing this.


Previous Topic:Eclipse Version Compatible with GDB 7.5
Next Topic:Hover - Source of Documentation
Goto Forum:
  


Current Time: Fri Oct 11 02:58:23 GMT 2024

Powered by FUDForum. Page generated in 0.06989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top