Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-14-2011, 01:34 PM   #1
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!

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

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

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


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

All times are GMT -5. The time now is 08:28 PM.

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