Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 12-07-2004, 04:49 AM   #1
Registered: Nov 2004
Location: Malaysia,KL
Distribution: Mandrake 10.2 cooker,kernel, kde 3.3.2,
Posts: 42

Rep: Reputation: 15
how to compile c++ programs in 10.1 official

Hi sorry but i would like to ask how can i use a program like MS Visyual C++ to compile my C++ programs . i'm really a newbie so i dun know. i'm having 10.1 official powerpack with kdevelop and allthat but when i open i dun know how too use it
Old 12-07-2004, 10:18 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 68
KDevelop is the nearest thing Linux has to Visual Studio. You'll find other IDEs if you search for them on but don't expect anything more MS-like than what you already have.

The easiest way to compile a C++ program (in my oppinion) is on the command-line. The command is
c++ options *.cpp -o outfile
Here, options is either -O3 to optimise your code or -g to add debugging information. *.cpp selects all the files ending in .cpp (all C++ files in the current directory) and outfile is the filename of the binary to be produced.

To compile a project in KDevelop, you just need to import the source files (I think you can just drag them onto the project window), and then choose the compile option.

Some projects use automake, configure and so on to set up things that need different compiler flags depending on the project; if you create a project in KDevelop then it will set all of this up for you and you just have to click on compile and say yes a few times.
Old 12-07-2004, 12:30 PM   #3
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
Better still follow the directions on my sig.

Then from the menu go to "Install Software"

and under Mandrake choices look in Developement for a slew of IDE, compilers and tools, all free of course.


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
10.1 official kernel compile error mailbinoy Mandriva 2 09-15-2005 11:58 AM
cannot compile c programs umeshpandey007 Linux - Newbie 7 08-29-2005 09:19 PM
Installing programs on 10.1 Official palidors Mandriva 1 12-21-2004 02:04 PM
trying to compile X11R6.8.1 on mdk10.1 official quatsch Mandriva 3 12-12-2004 08:08 PM
Certain programs won't compile thegeekster Linux - Software 2 01-15-2004 06:25 AM

All times are GMT -5. The time now is 03:35 AM.

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