Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

We want to create puppets that pull their own strings. -- Ann Marion


devel / comp.os.msdos.djgpp / is std::trunc() ever going to work?

SubjectAuthor
o is std::trunc() ever going to work?janezz55

1
is std::trunc() ever going to work?

<80d78acb-55c9-4bd0-9198-2c3705e9489en@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=222&group=comp.os.msdos.djgpp#222

  copy link   Newsgroups: comp.os.msdos.djgpp
X-Received: by 2002:a05:6214:2483:b0:4bb:59ec:c5a7 with SMTP id gi3-20020a056214248300b004bb59ecc5a7mr4665071qvb.94.1666429880864;
Sat, 22 Oct 2022 02:11:20 -0700 (PDT)
X-Received: by 2002:a25:c0c3:0:b0:6c1:34ce:ebe7 with SMTP id
c186-20020a25c0c3000000b006c134ceebe7mr21620377ybf.458.1666429880586; Sat, 22
Oct 2022 02:11:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.msdos.djgpp
Date: Sat, 22 Oct 2022 02:11:20 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=46.123.255.235; posting-account=CPdYWwoAAABpWBQIr4qTKwtnquUvEEfS
NNTP-Posting-Host: 46.123.255.235
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <80d78acb-55c9-4bd0-9198-2c3705e9489en@googlegroups.com>
Subject: is std::trunc() ever going to work?
From: janez...@gmail.com (janezz55)
Injection-Date: Sat, 22 Oct 2022 09:11:20 +0000
Content-Type: text/plain; charset="UTF-8"
 by: janezz55 - Sat, 22 Oct 2022 09:11 UTC

I tried to use std::trunc(), but it doesn't work and browsing through header files revealed gcc does not trust the math.h header file DJGPP provides and so does not declare it. trunc(), truncf(), truncl() work as expected though.

the error is:

error: 'trunc' is not a member of 'std'; did you mean 'trunc'?
/usr/i586-pc-msdosdjgpp/include/math.h:195:15: note: 'trunc' declared here
195 | extern double trunc(double);

apparently the macro __CORRECT_ISO_CPP11_MATH_H_PROTO_FP is not defined. Defining it explicitly produces errors related to isnan().

Documentation about the macro says: Define if all C++11 floating point overloads are available in <math.h>.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor