Code Monkey home page Code Monkey logo

Comments (5)

technion avatar technion commented on August 23, 2024

FYI, GCC 4.4.7 and Clang 3.4.2 on CentOS 6.5 don't suffer this issue.

from ntimed.

technion avatar technion commented on August 23, 2024

@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.

joakimfors avatar joakimfors commented on August 23, 2024
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.

technion avatar technion commented on August 23, 2024

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.

bsdphk avatar bsdphk commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.