🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3541

Re: g++ -ansi not recongizing stdlib's erand48

#3541
From: Fred Ma
Date: Tue, 18 Mar 2003 07:08
18 lines
2046 bytes
Jens.Toerring@physik.fu-berlin.de wrote:

> I don't know much about C++, but if this isn't too different from C
> the problem is that by using -ansi you explicitely tell that you
> want non-standard functions (like erand48()) *not* to be declared
> in the header files (that's usually done by some #if's to exclude
> these non-standard functions in case -ansi is used). You will have
> to either supply your own declaration of erand48() or forgo using
> the -ansi option. The -ansi option is for the cases where you want
> to make really sure your program is portable by using only standard
> functions (or when you want to post code in clc ;-), but if you need
> non-standard functions you have to accept that it isn't, at least in
> this respect.
>                                  Regards, Jens

Thanks for clarifying, Jens.  And for all the assistance you've given.

Fred
Technical Details
Message-ID: <3E76C5F1.4BD4F9AD@doe.carleton.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail
References: <3E7665C2.B40DC681@doe.carleton.ca> <b55qju$250d27$1@fu-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,39656fba4b7778f2
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,39656fba4b7778f2
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2003-03-17 23:16:16 PST
Message-ID: <3E76C5F1.4BD4F9AD@doe.carleton.ca>
From: Fred Ma <fma@doe.carleton.ca>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: g++ -ansi not recongizing stdlib's erand48
References: <3E7665C2.B40DC681@doe.carleton.ca> <b55qju$250d27$1@fu-berlin.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 19
Date: Tue, 18 Mar 2003 02:08:33 -0500
NNTP-Posting-Host: 64.230.77.190
X-Complaints-To: abuse@sympatico.ca
X-Trace: news20.bellglobal.com 1047971543 64.230.77.190 (Tue, 18 Mar 2003 02:12:23 EST)
NNTP-Posting-Date: Tue, 18 Mar 2003 02:12:23 EST
Organization: Bell Sympatico
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!torn!webster!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail