Comments (5)
FYI, GCC 4.4.7 and Clang 3.4.2 on CentOS 6.5 don't suffer this issue.
from ntimed.
@joakimfors , I've created a patch in my repo, but I don't have an old enough Linux to test it with. Can you try it?
from ntimed.
make
cc -Wall -Werror -c -o combine_delta.o combine_delta.c
combine_delta.c: In function ‘CD_AddSource’:
combine_delta.c:208: error: ‘INFINITY’ undeclared (first use in this function)
combine_delta.c:208: error: (Each undeclared identifier is reported only once
combine_delta.c:208: error: for each function it appears in.)
make: *** [combine_delta.o] Error 1
Perhaps the Makefile generation should be patched to include CFLAGS="-std=gnu99"
instead?
from ntimed.
Now that's a worry. GNU decided that NAN was a GNU extension, but the link in my comment states clearly that INFINITY is part of the C99 standard and should exist everywhere.
Telling a portable program to compile with GNU extensions is not the right approach imo.
You don't by chance have default CFLAGS compiling for std89 or something do you?
Note that CentOS is from 2007.
from ntimed.
I have changed NAN which strictly speaking is only for float, to nan("") which is for double.
I'm not ever going to add a "-std=gnuanything" option if I can avoid it.
from ntimed.
Related Issues (15)
- assertation `i >= 0` failed when user is not root HOT 1
- Configuration file suggestion HOT 2
- error when not running as root HOT 9
- Does not compile on Mac OS X 10.10.1 HOT 9
- NetBSD build issue HOT 1
- Build problems with default flags on NetBSD HOT 2
- plotgen.py doesn't run HOT 2
- suspicious re-assignment before old value has been read
- What is the supported precision? HOT 1
- Project Status: future plans & applicability to data-center use today
- Does not compile on Debian kFreebsd HOT 2
- Thanks for doing this!
- Peers returning IPV6 addresses fail HOT 2
- Return friendly (instead of assert failure) error for non-root invocation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntimed.