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 - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-07-2004, 04:49 AM   #1
msalimane
Member
 
Registered: Nov 2004
Location: Malaysia,KL
Distribution: Mandrake 10.2 cooker,kernel 2.6.8.1-20, 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
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
KDevelop is the nearest thing Linux has to Visual Studio. You'll find other IDEs if you search for them on freshmeat.net 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
Code:
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
opjose
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:21 AM.

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