cpp in unix


 
Thread Tools Search this Thread
Top Forums Programming cpp in unix
# 1  
Old 10-28-2004
cpp in unix

sir

i am trying to compile and execute cpp file in unix
the command cpp <filename > is not working
do you suggest any other command?

thanking you
# 2  
Old 10-28-2004
You didn't mention which Unix variant you are using. On different platforms, various compilers are available.

For C++, and on many newer installations you may be able to find g++ installed (from gcc compiler suite from GNU), mostly by default.
# 3  
Old 10-28-2004
you also can try:

HP: aCC
Solaris: CC
AIX: xlC
# 4  
Old 10-28-2004
Re: cpp in unix

Quote:
Originally posted by sandhyapidugu
sir

i am trying to compile and execute cpp file in unix
the command cpp <filename > is not working
do you suggest any other command?

thanking you
cpp is the C PreProcessor. It doesn't mean C++, BTW.
# 5  
Old 10-29-2004
thank you

thank you
for sending me a valuable response
# 6  
Old 10-29-2004
thnak you

thank you
for your valuable response
now i am able to execute the program
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

.h or .cpp

I have the code below and cannot decide if to put it in a .h file or in a .cpp file #ifndef VERBOSE_H #define VERBOSE_H #include "sstring.h" enum Verbose { none = 0, low = 1, medium = 2, high = 3, diag = 4 }; bool GetVerbose(String& S, Verbose& V) { S.ToUpper(); if (S ==... (3 Replies)
Discussion started by: kristinu
3 Replies

2. Programming

exit in cpp

In a program if we call exit(0), it exits the program and before that it closes all opened stream. In C++, it even does destroys the created objects. Is there any function available, which if called will do some basic clean ups (which includes object destruction) ??? (4 Replies)
Discussion started by: lipun4u
4 Replies

3. Shell Programming and Scripting

CPP to PERL

Hi all, can we convert a cpp program to perl scripting ? (4 Replies)
Discussion started by: Shell_Learner
4 Replies

4. Shell Programming and Scripting

reading a cpp file

I need to find all the methods in a cpp file ... using shell script Pls guide me regarding the grep criteria for searching methods I mean what are the patterns to be grepped in *.cpp which match methods Hope i have made myself clear Thanks and Regards -- Ultimatix (2 Replies)
Discussion started by: ultimatix
2 Replies

5. Shell Programming and Scripting

If file = .cpp then print?

I'm trying to develop a script that makes it so only .cpp programs can print. I'm doing it for my computer programming class because everyone keeps printing the executable instead of the source code and it's wasting a lot of paper. How can I accomplish this? Thanks for the help. :D (5 Replies)
Discussion started by: Irish_Cereal
5 Replies

6. Programming

Problem with kerberos cpp project

Hi All, I am having problem with kerberos kadmin library in c++. I am using red hat linux Enterprise Linux Server release 5 (Tikanga), and gcc c++ - 4.1.1-52.el4.i386. When I make a c project (main.c) and use function from kadmin library such as kadm5_init_krb5_context(&context); ... (2 Replies)
Discussion started by: amitp
2 Replies

7. Programming

gcccommand found how to do with cpp

gcc help iam using kubuntu os (www.ubuntu.com) in that i dont find gcc but cpp command is there how to compile code with that & how to use gij for java in ubuntu (1 Reply)
Discussion started by: seshumohan
1 Replies

8. UNIX for Dummies Questions & Answers

Hi Modem Problem And cpp

Hi am very new to unix.I got installed linux mandrake and the first problem is whith the modem i don't know why but it does not work. i config it on /dev/modem and some time it says "the modem is bussy" and some time it says: "Modem ready" but the modem did'n switch on Ok the other question... (3 Replies)
Discussion started by: user666
3 Replies
Login or Register to Ask a Question