LinuxQuestions.org
Visit Jeremy's Blog.
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, 12:17 PM   #16
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
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


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


All times are GMT -5. The time now is 08:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration