LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-03-2001, 12:14 PM   #1
digiview
LQ Newbie
 
Registered: Dec 2000
Location: jersey city
Posts: 8

Rep: Reputation: 0
Wink


how do i invoke c++ on red hat linux6.2 (its saying no input files)i tryed typing c++ gcc even combining #include <iostream.h> along with blah blah.cpp but still no response,what do i do.








,
 
Old 04-03-2001, 04:23 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
I call g++. g++ is actually a link to another binary.

Code:
lrwxrwxrwx   1 root     root           16 Feb 18 13:41 g++ -> g++-egcs-2.91.66*
-rwxr-xr-x   1 root     bin         65748 Jun 22  1999 g++-egcs-2.91.66*
 
Old 04-04-2001, 06:31 PM   #3
digiview
LQ Newbie
 
Registered: Dec 2000
Location: jersey city
Posts: 8

Original Poster
Rep: Reputation: 0
uhhhhhh

what?!Thank you for your input but idont know what your talking about.i juss whant to get into c++(get the compiler to run)
 
Old 04-04-2001, 09:00 PM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
g++ is the name of the gnu c++ compiler. If you don't have the binary I mentioned, you may have to install it.

Here is the description of g++ taken from the man page.

Quote:
The C and C++ compilers are integrated; g++ is a script to
call gcc with options to recognize C++. gcc processes
input files through one or more of four stages: prepro-
cessing, compilation, assembly, and linking. This man
page contains full descriptions for only C++ specific
aspects of the compiler, though it also contains summaries
of some general-purpose options. For a fuller explanation
of the compiler, see gcc(1).
 
Old 04-07-2001, 04:25 AM   #5
Arun Saravanan
LQ Newbie
 
Registered: Apr 2001
Posts: 1

Rep: Reputation: 0
My Linux point g++ to a perl script called colorgcc.

ar.
 
Old 04-09-2001, 05:28 PM   #6
bobthebat
Member
 
Registered: Apr 2001
Location: Portland, OR
Distribution: Slackware 8
Posts: 82

Rep: Reputation: 15
heres what i do

This is what I do, assuming the file to compile is /home/bobthebat/hello.cc and I want to make an executable called hello in the same directory:

g++ /home/bobthebat/hello.cc -o /home/bobthebat/hello

Then the computer chugs for a bit and returns you to the command line. Hope it helps.
 
Old 04-11-2001, 02:51 PM   #7
mkultra
LQ Newbie
 
Registered: Apr 2001
Posts: 3

Rep: Reputation: 0
I like cheese also.
 
Old 04-11-2001, 05:43 PM   #8
bobthebat
Member
 
Registered: Apr 2001
Location: Portland, OR
Distribution: Slackware 8
Posts: 82

Rep: Reputation: 15
Smile wonderful

aaaaaaahhhhhhh a kindred soul.
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

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