Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-05-2002, 03:37 AM   #1
LQ Newbie
Registered: May 2002
Location: 1
Distribution: 1
Posts: 10

Rep: Reputation: 0
Unhappy where can I find the resource of GCC and c++ for linux ?

I want to learn C++ for linux ,but I don't know the difference of Microsotf windows version and linux version.
Please give me an URL!

Last edited by wolfshome; 06-05-2002 at 03:41 AM.
Old 06-05-2002, 07:05 AM   #2
Registered: Jan 2001
Location: Switzerland
Distribution: Gentoo
Posts: 376

Rep: Reputation: 30
C++ is a language so you can use it in Linux the same way. Microsoft has just extended C++ a little bit. If you're new to c++,o you won't note the difference anyway. Try to look at some linux programming books. I think Wrox has some ( good books about Linuxprogramming.
The C compiler is gcc. The gcc homepage is
However, I would just learn it by using itm, don't try to read a manual
Old 06-05-2002, 07:08 AM   #3
Registered: Nov 2001
Location: London, England
Distribution: Gentoo, FreeBSD
Posts: 590

Rep: Reputation: 30
The core C++ language is the same on all platforms (that's why we give it the same name ). Obviously anything more complicated than simple file i/o requires you to make calls to the operating system which will differ between Windows and Linux.

Using gcc on the command line is pretty easy (man gcc for more info). This would compile test.c and produce the execuatable file test:

gcc test.c -o test

For C++ files use g++:

g++ -o test

(A variety of file extensions are used for C++ files under UNIX/Linux, you can use .cpp if you want to).

For larger projects you'll want to look into Make and the Autotools (do some googling). Standard GUI toolkits for Linux are Qt ( and Gtk+ (



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
cant find gcc ryedunn Mandriva 3 09-14-2005 01:32 AM
Help! I cant find any of my windows xp files and documents titanium_crainium Linux - General 1 06-19-2005 02:09 PM
How to find Linux kernel & gcc version taichiman Linux - Hardware 2 11-07-2004 02:11 PM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 01:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 02:46 AM

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