Giter Club home page Giter Club logo

Comments (3)

jeffreyscottgraham avatar jeffreyscottgraham commented on July 3, 2024

Here is a patch (it also sets CC and CFLAGS only if not already set, since some of us do not use clang)

--- Makefile
+++ Makefile
@@ -1,8 +1,8 @@
#CC = g++
#CFLAGS = -O3 -Wall -pedantic -ffast-math -fomit-frame-pointer

-#CC = clang++
-#CFLAGS = llvm-config --ldflags -O3 -Wall -pedantic
+CC ?= clang++
+CFLAGS ?= llvm-config --ldflags -O3 -Wall -pedantic

debug version

#CFLAGS = -Wall -ggdb
@@ -29,7 +29,7 @@
PATH_SAMPLE = ./sample

-all: example
+all: $(PATH_OBJ) $(PATH_BIN) example

new: clean example

@@ -76,3 +76,7 @@
new:
$(MAKE) clean
$(MAKE) all
+
+$(PATH_OBJ) $(PATH_BIN):

  • mkdir -p $@

from muparserx.

nasailja avatar nasailja commented on July 3, 2024

+1, I had to create bin and obj and use CC=c++ as clang++ didn't exist. I also had to add -std=c++11 to CFLAGS as GCC warned: ./sample/example.cpp:360:120: warning: ISO C++98 does not support the '%lf' gnu_printf format

from muparserx.

beltoforion avatar beltoforion commented on July 3, 2024

The issue is now fixed in the current head revision (although i just added the folders to the repository)

from muparserx.

Related Issues (20)

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.