Newsgroups: comp.os.msdos.djgpp Subject: Re: fstream problems? From: thelemur AT nowhere DOT not (Wesel) References: <8FF1CB55A0wf89u AT 206 DOT 13 DOT 28 DOT 143> <83y9yfdyp3 DOT fsf AT mercury DOT st DOT hmc DOT edu> Organization: C.O.W. Inc Message-ID: <8FF57C6080wf89u@206.13.28.144> User-Agent: Xnews/03.07.28 Lines: 31 Date: Thu, 23 Nov 2000 18:53:12 GMT NNTP-Posting-Host: 63.197.122.98 X-Complaints-To: abuse AT pacbell DOT net X-Trace: news.pacbell.net 975005592 63.197.122.98 (Thu, 23 Nov 2000 10:53:12 PST) NNTP-Posting-Date: Thu, 23 Nov 2000 10:53:12 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com neldredge AT hmc DOT edu (Nate Eldredge) scritched in <83y9yfdyp3 DOT fsf AT mercury DOT st DOT hmc DOT edu>: >thelemur AT nowhere DOT not (Wesel) writes: > >> I have been having trouble with the fstream class in djgpp. It seems >> I have a misplaced library, or perhaps a damaged one. > >No. Well it -was- in the wrong place in the command line. Does that count as misplaced? > >> gcc -c test.cpp >> gcc test.o -o test.exe > >This should be gxx, not gcc. *shrug* gcc and gxx work much the same I've found, as long as you provide the right libraries. >Because link order matters. If you'd put -lstdcxx at the end of the >line, it should have worked, AFAIK. That... works. Thank you! I could have sworn someone told me the the libraries needed to go -before- the source code. I must have had it backwards. Well, now I know. My program compiles perfectly. Wesel