[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Compiling C++ programs!



rahul nanda forced the electrons to say:
> Hi all,
> I wanted to run C++ programs in linux RH 5.2.
> How to compile C++ programs? Please help me out.
> Thanks
> Rahul

Type in your program using your favourite text editor, save it in a file 
with the extension .C or .cc (say myprog.C) and run the command

make myprog

You will get the executable (assuming the compilation was successful)
in a file myprog. Execute it as ./myprog

Binand

- -- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
The Linux India mailing list does not accept postings in HTML format.

------------------------------