LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-05-2002, 02:37 AM   #1
wolfshome
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 ?


hi.
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!
thanks!!



Last edited by wolfshome; 06-05-2002 at 02:41 AM.
 
Old 06-05-2002, 06:05 AM   #2
Config
Member
 
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 (www.wrox.com) good books about Linuxprogramming.
The C compiler is gcc. The gcc homepage is gcc.gnu.org
However, I would just learn it by using itm, don't try to read a manual
 
Old 06-05-2002, 06:08 AM   #3
llama_meme
Member
 
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++ test.cc -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 (www.trolltech.com) and Gtk+ (www.gtk.org).

Alex
 
  


Reply


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


All times are GMT -5. The time now is 12:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration