![]() |
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 |
| UNIX newbie NEWBIE question! | Hanamachi | UNIX for Dummies Questions & Answers | 4 | 03-28-2009 04:10 PM |
| Can u help a newbie? | bLinQue | UNIX for Dummies Questions & Answers | 2 | 07-16-2004 01:27 PM |
| newbie needs help | goodman | UNIX for Dummies Questions & Answers | 1 | 01-25-2002 10:50 AM |
| help<newbie> | skistar | High Level Programming | 9 | 01-18-2002 06:12 PM |
| NEWBIE << help >> | LolapaloL | High Level Programming | 1 | 11-13-2001 01:02 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Error message
I tried to run g++ ut got an error about <iostream.h>
As I understod it is supposed to be located in /usr/include but it is not there. Have i got it wrong? The error msg I got is: hello.cpp: In function `int main ()': hello.cpp:5: no match for `_IO_ostream_withassign & = const char[13]' /usr/include/g++-3/iostream.h:243: candidates are: _IO_ostream_withassign &_IO_ostream_withassign: perator= (ostream &)/usr/include/g++-3/iostream.h:245: _IO_ostream_withassign &_IO_ostream_withassign: perator=(_IO_ostream_withassign &) and the source code is: #include <iostream.h> main () { cout >>"Hello World\n"; return 0; } Last edited by <Therapy>; 03-20-2002 at 08:24 AM.. |
|
||||
|
Ok, now I do got error:
hello.cpp: In function `int main ()': hello.cpp:5: `cout' undeclared (first use this function) hello.cpp:5: (Each undeclared identifier is reported only once for each function it appears in.) `cout' undeclared? I don't get this.... ![]() |
|
||||
|
Finally I got it working!
Feels quite embarrasing to put the error from one of the most simple program ever on the web. ut for all newbies - Watch ad learn. The rigth code is: #include <iostream.h> int main() { cout << "Hello World!\n"; return 0; } Take care! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|