home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!usenet.coe.montana.edu!Msu.oscs.montana.edu!imsks126
- From: imsks126@Msu.oscs.montana.edu
- Newsgroups: comp.os.msdos.programmer
- Subject: #include <iostream.h> cout "Hello World\n" hassle (kindergarten prob, I guess)
- Message-ID: <0095E0C9.C1EA64E0@Msu.oscs.montana.edu>
- Date: 24 Jul 92 18:07:47 GMT
- Article-I.D.: Msu.0095E0C9.C1EA64E0
- Sender: usenet@coe.montana.edu (USENET News System)
- Reply-To: imsks126@Msu.oscs.montana.edu
- Organization: Montana State University
- Lines: 24
-
-
- What am I doing wrong? If I #include <iostream.h> I can
-
- void main(void){
- int a = 123;
- cout << a;
- }
-
- and 123 gets printed to the screen.
-
- but if I try: or:
-
- void main(void){ void main(void){
- char str[6];
- cout << "Uga Buga";
- str = "Uga Buga"; }
- cout << str;
- }
-
- in both cases I get linker error "undef symbol in ostream:: etc."
- This must be something very stupid and elementary, but I can't
- get it working. Thanks.
-
- Sandy
-