LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-14-2011, 12:34 PM   #1
taylorp
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
Using KDevelop 4


I am new to C++ and I am trying to use KDevelop 4 to work through a C++ Beginner book. I made a simple file but I don't know how to compile and run it. I see a button that says "Execute", but it doesn't do anything.

I am anxious to get going in this book. Can someone help me get over this simple hurdle by telling me how to compile and run files in KDevelop? Thx!

-Paul
 
Old 07-14-2011, 02:05 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I strongly recommend that you do not use an IDE like KDevelop to learn programming. It hides everything from you, and instead of understanding the compilation process, you just hope it magically works when you push the button.

To compile a single source file:

Code:
gcc source.c -o name-of-executable
If you omit the "-o name-of-executable" part, it names the executable "a.out".
 
  


Reply



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
kdevelop help paulr1984 Linux - Software 0 06-04-2005 03:50 AM
Kdevelop HELP! Phalloides Linux - Software 12 01-20-2005 07:22 PM
kdevelop/qt vascaino Debian 2 02-22-2004 06:43 PM
Kdevelop C++ HELP jester_fu Programming 6 08-08-2003 12:23 PM
Kdevelop help Neomaster Linux - General 3 06-25-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 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