Giter Site home page Giter Site logo

dpt / containers Goto Github PK

View Code? Open in Web Editor NEW
38.0 5.0 10.0 313 KB

A library of binary tree data structures (bstree, dstree, trie, crit-bit, PATRICIA) implemented in C

Home Page: http://www.davespace.co.uk/projects/containers.html

License: BSD 2-Clause "Simplified" License

C 99.99% C++ 0.01%
data-structures c trees trie patricia-tree crit-bit-tree binary-search-tree

containers's People

Contributors

dpt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

containers's Issues

Can't compile on Linux

Hi there,

I was trying to compile on Linux (x86_64) and I got stuck. First off, you might want to mention that this requires clang; it's pretty obvious after trying to run make the first time but still.
Second, I fixed a few errors by adding #included <stdint.h> to base/types.h, although I don't really understand why because the error was about intptr_t which was already defined in base/types.h.
Then I'm getting some more errors:

clang -c -std=c99  -Wall -Wundef -Wpointer-arith -Wuninitialized -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wunused -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wno-unused -Wno-long-long -W -Wshadow -Iinclude -MMD -Os -DNDEBUG libraries/datastruct/queue/test/test.c -o libraries/datastruct/queue/test/test.o
libraries/datastruct/queue/test/test.c:181:7: warning: no previous prototype for
      function 'queuetest' [-Wmissing-prototypes]
error queuetest(void)
      ^
1 warning generated.
ar rc libcontainertest.a libraries/datastruct/queue/test/test.o
clang  -o container-test libcontainertest.a libcontainer.a
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 10
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 11
[...]
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'

Do you happen to know what to do about these?
Cheers

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.