home *** CD-ROM | disk | FTP | other *** search
- Nntp-Posting-Host: sognsvann.ifi.uio.no
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!jonso
- From: jonso@ifi.uio.no (Jon Martin Solaas)
- Subject: emx 08f problem using seekg in iostream.h
- Message-ID: <1993Jan22.092814.7669@ifi.uio.no>
- Organization: Dept. of Informatics, University of Oslo, Norway
- Date: Fri, 22 Jan 1993 09:28:14 GMT
- Lines: 44
- Originator: jonso@sognsvann.ifi.uio.no
-
-
-
- I recently upgraded my EMX / Gnu C++ system from
- version 08e / 2.2.2 to 08f / 2.3.3. I have noticed
- that the libraries have been rearranged.
-
- My problem:
-
- Where did the seekg and seekp functions in
- istream and ostream go?
-
- Using the functions under version 08e / 2.2.2 works
- just fine, but using version 08f / 2.3.3 gives the
- following error(s) when linking (using .o-style object
- files and .a-style libraries):
-
- ./ccc00096: Undefined symbol _seekg__8iostreamlQ23ios8seek_dir
- referenced from text segment
-
- (repeated for each occurence of a seekg-call)
-
- The source might look like this:
-
- #include <iostream.h>
- #include <fstream.h>
-
- main () {
- fstream internalFile("diskFile", ios::in | ios::app);
- internalFile.seekg(1,ios::beg);
- // ...
- }
-
- The functions are still present in iostream.h, so I guess
- this is a sort of library problem. Do I have to use some new
- -l option under version 08f to get the libs right? The
- example above was compiled with the -lgpp option, both under
- version 08e and 08f. The iostream examples in /emx/test seems
- to work fine under both versions.
-
-
- Jon Martin Solaas
- jonso@ifi.uio.no
-
-
-