Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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

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


but if it doesn't work try: *.cp; *.c++; *.c+
Plus: *.C and *.cxx
All are accepted by gcc
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).


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 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 > Forums > Linux Forums > Linux - Newbie

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