delorie.com/archives/browse.cgi | search |
From: | garga909 AT yahoo DOT com (Garga) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Compile problems when using iostream |
Date: | 13 Oct 2001 04:13:45 -0700 |
Organization: | http://groups.google.com/ |
Lines: | 42 |
Message-ID: | <4de7a7a3.0110130313.4a086406@posting.google.com> |
NNTP-Posting-Host: | 194.29.197.15 |
X-Trace: | posting.google.com 1002971626 6196 127.0.0.1 (13 Oct 2001 11:13:46 GMT) |
X-Complaints-To: | groups-abuse AT google DOT com |
NNTP-Posting-Date: | 13 Oct 2001 11:13:46 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
The problem: I cannot use iostream/fstream or anything like vectors that use those libraries because of a compiler error. If I compile the following: ( Vectors use iostream ) #include <vector> int main() { vector< int >thevec; return 1; } ... it compiles OK! But when I try to allocate memory, no matter what way for example I tried this: #include <vector> int main() { vector< int >thevec; thevec.push_back(); return 1; } It gives the following undefined references: endl( ostream & ) cerr (!!) and 2 times << operator whith const char pointer in the first as parameter and reference to ofstream class function pointer in the second ( I'm quite sure it is ) What to do?? Including iostream won't help... I've just re-downloaded all the latest files from DJGPP site ( or I'm quite sure I've got the right ones... ) My djgpp version seems to be 2.03.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |