LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 09-07-2004, 01:29 AM   #1
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
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?
 
Old 09-07-2004, 01:44 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
Old 09-07-2004, 02:57 AM   #3
cppkid
Member
 
Registered: Jul 2004
Location: Pakistan
Distribution: Ubuntu
Posts: 185

Rep: Reputation: 30
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.
 
Old 09-14-2004, 09:06 PM   #4
sirclif
Member
 
Registered: Sep 2004
Location: south texas
Distribution: fedora core 3,4; gentoo
Posts: 192

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
simple question Hotfeet Linux - Wireless Networking 3 01-28-2004 09:39 PM
Simple(hopefully) question magyartoth Linux - Networking 13 04-04-2002 02:24 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration