LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-23-2003, 11:17 AM   #16
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: as far as I know


Quote:
Originally posted by twolf
Let me remember the extension of C++.
ehm :-)
I believe it might be this one:

*.cpp

but if it doesn't work try: *.cp; *.c++; *.c+
Plus: *.C and *.cxx
All are accepted by gcc
Quote:
and a simple line command:

gcc -o output_file your_file.cpp <enter>
For C++ file I suggest rather
g++ -o output_file your_file.cpp <enter>

G++ is C++ compiler, GCC compiles C files. When you try to compile a C++ file using gcc, you may run into trouble (linking problems).
 
  


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
no acceptable C compiler found jesusphreak Linux - Software 4 04-07-2005 08:50 PM
no acceptable C compiler found OsirisX Linux - Software 1 02-10-2005 08:06 PM
no acceptable C compiler found... altair401 Linux - Newbie 1 09-29-2004 11:54 PM
no acceptable C compiler found ioannisss Linux - Newbie 5 08-27-2004 11:59 AM
Looking for C++ compiler... none found! klod Debian 3 08-26-2003 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 PM.

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