thi-ng / c-thing Goto Github PK
View Code? Open in Web Editor NEWGeometry related data structures (C11)
License: Apache License 2.0
Geometry related data structures (C11)
License: Apache License 2.0
On 64bit Linux - Ubuntu 16.04:
make config=debug_sse test && bin/debug/test
fails with:
==== Building lib (release_sse) ====
Creating bin/release
Creating obj/sse/release/lib
adjacency.c
In file included from src/data/adjacency.c:6:0:
src/math/math.h: In function ‘ct_clz8’:
src/math/math.h:60:6: error: #elif with no expression
#elif
^
lib.make:202: recipe for target 'obj/sse/release/lib/adjacency.o' failed
make[1]: *** [obj/sse/release/lib/adjacency.o] Error 1
Makefile:56: recipe for target 'lib' failed
make: *** [lib] Error 2
changing line 60 in math.h
from #elif
to #else
clears the above issue.
After making this fix tests still won't build and following issue is reported:
==== Building test (debug_sse) ====
object.c
In file included from src/common/dbg.h:6:0,
from src/data/object.c:5:
src/data/object.c: In function ‘ct_object_tostring’:
src/config.h:27:21: error: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 6 has type ‘int’ [-Werror=format=]
#define CT_ANSI_RED "\x1b[31;1m"
^
src/common/dbg.h:26:11: note: in expansion of macro ‘CT_ANSI_RED’
CT_ANSI_RED "[ERROR] (%s:%d, err: %s) " M CT_ANSI_RESET "\n", \
^~~~~~~~~~~
src/common/dbg.h:52:5: note: in expansion of macro ‘CT_ERROR’
CT_ERROR(M, ##__VA_ARGS__); \
^~~~~~~~
src/data/object.c:86:3: note: in expansion of macro ‘CT_CHECK’
CT_CHECK(__impls_itostring[o->tag.type].tostring != NULL,
^~~~~~~~
cc1: all warnings being treated as errors
test.make:237: recipe for target 'obj/sse/debug/test/object.o' failed
make[1]: *** [obj/sse/debug/test/object.o] Error 1
Makefile:50: recipe for target 'test' failed
make: *** [test] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.