🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3518

emx 08f problem using seekg in iostream.h

#3518
From: Jon Martin Solaas
Date: Fri, 22 Jan 1993 09:28
44 lines
1616 bytes

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

 
Technical Details
Message-ID: <1993Jan22.092814.7669@ifi.uio.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!ifi.uio.no!jonso

Show Full Headers
Complete Article Headers
Nntp-Posting-Host: sognsvann.ifi.uio.no
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!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