Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-07-2004, 01:29 AM
|
#1
|
Member
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245
Rep:
|
Simple Question about DDD
Is is possible to open up source code in DDD without compiling an executable file? I want to edit in DDD (or maybe vim and then cut and past) so that when I try to compile, I get output if any errors occur.
But wait, this is what DDD is for, right? Or am I missing something? At this point I can only debug programs that compile without any errors. Correct me if I am wrong, but my image of a debugger is that it helps you compile as well as perform debugging after you have created an executable program.
Or not?
|
|
|
09-07-2004, 01:44 AM
|
#2
|
Senior Member
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246
Rep:
|
Quote:
my image of a debugger is that it helps you compile as well as perform debugging
|
This sounds to me like: my image of a toaster is that it keeps your ice ceam cold as well as perform toasting.
A toaster is meant to toast and a debugger is meant to debug. You have the right idea of what debugging is, and that's what a debugger is for. I believe you're thinking of an IDE (Integrated Developing Environment) instead of a debugger.
|
|
|
09-07-2004, 02:57 AM
|
#3
|
Member
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185
Rep:
|
look buddy DDD is a GUI for GDB and it is a debugger and a debugger is for debugging. You provide the executable and also provide the source file of that executable and it will show you the instruction from the source code and will execute the binary. So it just looks like that it is executing the source as it is displaying you the source code of the instruction that it is executing. But for all that you must also provide the source file for that executable and also when you compile that executable you must enable debugging option. Like if it is C/C++ program you must give "-g" aurguments.
|
|
|
09-14-2004, 09:06 PM
|
#4
|
Member
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192
Rep:
|
getting your code to compile is not what ddd is for. gcc will tell you why your source code wont compile ddd helps you figure out why you get a segmentation fault, or why your getting a wrong answer. if your looking for something that will let you compile your source code, then list out the compile errors so you can go fix them, kdevelop is a c/c++ ide that a lot of people use. i like to compile from vim by using the :make command. it runs the makefile in the working directory and when i hit enter it takes me right to the first error. if you dont know how make files work, its worth the time to figure it out. search for some instructions on google, once you get an idea of how it works man make will make more sense
|
|
|
All times are GMT -5. The time now is 07:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|