Open yu15129214430 opened 8 years ago
I believe you need to look for getpid
in your platform and check which header has it. This is unrelated to eigen and libconfig.
Alternatively, remove the getpid() from that line.
Thank you for your reply. I have added
include
<unistd.h>
to utilities.h. But ,there are more problems in here :
src/hyperparameters.o:在函‘Hyperparameters::Hyperparameters(std::__cxx11::basic_string<char, std::chartraits
what's wrong? thanks for you time
I think the linker is not able to find libconfig. Make sure that you install the correct version of the libconfig .
So, where should I install the libconfig to a correct linker? Thank you.
Hi @amirsaffari I met the same libconfig++ linking errors. Specifying the path (/usr/lib/x86_64-linux-gnu) of libconfig++.so in Makefile does not help. I am using Ubuntu 16.04.4, G++ 5.4.0, libconfig++ 9.2.0
Move the reference to the library to the end of the line in the make file e.g move -libconf++ to the end of the line it is in
I also suffer from the same problem, it is as follow: Makefile:28: recipe for target 'OMCBoost' failed make: *** [OMCBoost] Error 1 The version of Libconfig is 1.4.4, it is consistent with the recommended version, can you give me a solution to this problem? Thanks!
Thank you, @admfisher14 ! Worked!!
src/utilities.h: In function ‘double randDouble()’: src/utilities.h:48:47: error: ‘getpid’ was not declared in this scope srand(TV.tv_sec * TV.tv_usec + getpid() + getDevRandom()); ^ Makefile:31: recipe for target 'src/online_rf.o' failed make: *\ [src/online_rf.o] Error 1 even I installed eigen2 and libconfig-1.5.