On 25 Jan 2001, Trond Eivind Glomsrød spewed into the bitstream:

TEG>John Aldrich <[EMAIL PROTECTED]> writes:
TEG>
TEG>> On Thu, 25 Jan 2001, you wrote:
TEG>> > Is there a c++ compiler in 6.2, and if there is, how do I get it to run? I have
TEG>> > RH7 at home, but I haven't tried to upgrade yet. Is there one in 7? Also, what
TEG>> > does the file extension have to be so the compiler knows it's c++. I know with
TEG>> > C, it is just file.c, is c++ file.cpp? That is what I have been trying with.
TEG>> > Here is what I have tried so far...
TEG>> > 
TEG>> > cpp file.cpp
TEG>> > cpp -lang-c++ file.cpp
TEG>> > gcc file.cpp
TEG>> > cc file.cpp
TEG>> > 
TEG>> > I know that gcc and cc doesn't like c++, but I'd thought I'd try it anyway. 
When
TEG>> > I run the cpp file.cpp or the second one, it displays what is in the file, but
TEG>> > doesn't compile anything, or atleast doesn't give me an output file.
TEG>> > 
TEG>> .c is the default extension, I think. Just use "cpp filename.c"
TEG>
TEG>cpp is the preprocessor, the C++ compiler is called c++/g++
TEG>
TEG>.c is for C files - C++ files generally use .cpp or .C.

This is not directly related to the poster's query but it's useful
ancillary info... weren't some of the changes made in RH7 that everybody
has bitched about... made expressly to improve C++ support? I have
thought that was the case and if so then wouldn't the poster have a
better time using his RH7 box as opposed to his 6.2 box?

--
Chuck Mead, Owner, MoonGroup.com
[EMAIL PROTECTED]
GnuPG Public Key Available: http://wwwkeys.us.pgp.net



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to