![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A program to trace execution of another program | jiten_hegde | High Level Programming | 3 | 08-19-2008 05:26 AM |
| multifile c program compilation and execution | alokmishra8 | UNIX for Dummies Questions & Answers | 1 | 02-01-2008 05:05 AM |
| unix command for multifile program execution | alokmishra8 | Linux | 0 | 02-01-2008 04:20 AM |
| help me do a small program!! THX | lydragon | Shell Programming and Scripting | 1 | 09-10-2006 05:27 PM |
| small unix! | nydel | UNIX for Dummies Questions & Answers | 4 | 05-22-2002 01:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
execution small C++ program in UNIX
Hi my friends
I am beginner unix programmer I have written small c++ program in text editor and I have change it mode to 555 to make it executable file to use it in unix O.P. #include<iostream.h> main() { cout<<"Hello World"; } but some syntax erroe came for << can any one help me how can I make executable file to use it unix o.p. |
|
||||
|
You changed what to 555? Have you compiled this?
Code:
$ g++ c.cpp
In file included from /usr/include/c++/3.2.3/backward/iostream.h:31,
from c.cpp:1:
/usr/include/c++/3.2.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
|
|
||||
|
if the C++ compiler on your system is Gnu C++ then use
Code:
g++ c.cpp -o myprogram |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|