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



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

Reply via email to