🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #19

Re: libg++ and strtol

#19
From: bothner
Date: Sun, 05 Apr 1992 15:58
22 lines
1104 bytes
>I compile even the simplest one line program and the loader complains
>about an undefined symbol - strtol.

strtol is required by ANSI.

>The Sequent version of Unix (bsd 4.3ish) does nor provide it

It is in NewsOS 3.2 (SOny), which is fairly straight port of 4.3bsd,
Sequent Symmetry is broken - in many ways.

>I am not using it so why is it required.

Becase it is used for I/O.

But take heart.  The next release of libg++ will include strtol.c,
and use Makefile magic to include strtol.o into libg++ if and only if
it is otherwise missing.

Until then, you can get strtol from the libiberty directory of gdb-4.x.

	--Per Bothner
Cygnus Support     bothner@cygnus.com
Technical Details
Message-ID: <9204060558.AA05843@cygnus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!bothner
References: <26034.9204060305@cch.coventry.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cygnus.com!bothner
From: bothner@cygnus.com
Subject: Re: libg++ and strtol
Message-ID: <9204060558.AA05843@cygnus.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
References: <26034.9204060305@cch.coventry.ac.uk>
Distribution: gnu
Date: Sun, 5 Apr 1992 15:58:42 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 23