Skip to content

Problems building #11

@et4te

Description

@et4te

After cloning and running ./install.sh and adding path to LD_LIBRARY_PATH, build attempt:

~/cpp/chaos$ g++ -std=c++11 main.cpp -I/usr/local/include/chaos/ -lchaos
/tmp/ccEHIRQi.o: In function `main':
main.cpp:(.text+0x2c): undefined reference to `chaos::engines::xorring64::push(unsigned long)'
main.cpp:(.text+0x42): undefined reference to `chaos::engines::xorring64::push(unsigned long)'
main.cpp:(.text+0x55): undefined reference to `chaos::engines::xorring64::pull()'
/tmp/ccEHIRQi.o: In function `chaos::machine<chaos::engines::xorring64>::reset()':
main.cpp:(.text._ZN5chaos7machineINS_7engines9xorring64EE5resetEv[_ZN5chaos7machineINS_7engines9xorring64EE5resetEv]+0x3c): undefined reference to `chaos::engines::xorring64::__reset()'
collect2: error: ld returned 1 exit status

Using the following code:

#include <iostream>
#include <chaos.h>

CHAOS_MACHINE_XORRING64 machine;

int main(void) {
  machine.set_space(100000);
  machine.push(0x8a5cd789635d2dff);    // add some data
  machine.push(0x284600e3f30e38c3);     // and other...
  while (true) putc_unlocked(machine.pull(), stdout);
}

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions