Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Issue Executing Simple Programs(Exec_tty error:Cannot run program )
Issue Executing Simple Programs [message #1807487] Thu, 30 May 2019 23:57 Go to next message
Eclipse UserFriend
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 11:56 Go to previous message
Eclipse UserFriend
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 Apr 18 20:00:36 EDT 2025

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

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

Back to the top