-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems building #11
Comments
Could you paste/do:
#include <chaos/types.hh>
#include <chaos/macros.hh>
#include <chaos/seed.hh>
#include <chaos/machine.hh>
#include <chaos/engines/xorring.hh> |
g++ (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
cmake version 3.5.2 With modified headers I still get the same error. ~/cpp/chaos$ ls /usr/local/include/chaos/
analysis.hh engines generators machine.hh macros.hh prng.hh seed.hh truely.hh types.hh ~/cpp/chaos$ export LD_LIBRARY_PATH=/usr/local/lib/
~/cpp/chaos$ g++ -std=c++11 main.cpp -I/usr/local/include/chaos/ -lchaos
/tmp/ccunREot.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/ccunREot.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 |
It is a linking error, you should specify the directory where libchaos library objects are installed. For example, if it is installed in /usr/local/lib the compilation flag is: |
same problems here~~ I've tried all methods above but still get same error... I think the only different is: Others such as path, comment and example are the same... Please help me... QAQ Thanks |
У меня такая же ошибка, компоновщик тела методов не находит |
Без sudo выдаёт ошибку доступа |
After cloning and running ./install.sh and adding path to LD_LIBRARY_PATH, build attempt:
Using the following code:
The text was updated successfully, but these errors were encountered: