Git Product home page Git Product logo

Comments (8)

amirsaffari avatar amirsaffari commented on July 3, 2024

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.

from online-multiclass-lpboost.

yu15129214430 avatar yu15129214430 commented on July 3, 2024

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::char_traits, std::allocator > const&)’中:
hyperparameters.cpp:(.text+0xe5):对‘libconfig::Config::Config()’未定义的引用
hyperparameters.cpp:(.text+0xef):对‘libconfig::Config::readFile(char const
)’未定义的引用
hyperparameters.cpp:(.text+0xfc):对‘libconfig::Config::lookup(char const
) const’未定义的引用
hyperparameters.cpp:(.text+0x104):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x114):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x11c):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x12b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x133):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x143):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x14b):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x15b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x163):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x173):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x17b):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x18b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x193):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x1a3):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x1ab):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x1bb):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x1c3):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x1d3):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x1db):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x1eb):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x1f3):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x203):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x20b):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x21b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x223):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x233):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x23b):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x24b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x253):对‘libconfig::Setting::operator double() const’未定义的引用
hyperparameters.cpp:(.text+0x263):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x26b):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x27b):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x283):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x293):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x29b):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x2ab):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x2b3):对‘libconfig::Setting::operator char const_() const’未定义的引用
hyperparameters.cpp:(.text+0x2dd):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x2e5):对‘libconfig::Setting::operator char const_() const’未定义的引用
hyperparameters.cpp:(.text+0x312):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x31a):对‘libconfig::Setting::operator char const_() const’未定义的引用
hyperparameters.cpp:(.text+0x34a):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x352):对‘libconfig::Setting::operator char const_() const’未定义的引用
hyperparameters.cpp:(.text+0x382):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x38a):对‘libconfig::Setting::operator char const_() const’未定义的引用
hyperparameters.cpp:(.text+0x3ba):对‘libconfig::Config::lookup(char const_) const’未定义的引用
hyperparameters.cpp:(.text+0x3c2):对‘libconfig::Setting::operator int() const’未定义的引用
hyperparameters.cpp:(.text+0x419):对‘libconfig::Config::~Config()’未定义的引用
hyperparameters.cpp:(.text+0x479):对‘libconfig::Config::~Config()’未定义的引用
collect2: error: ld returned 1 exit status
Makefile:28: recipe for target 'OMCBoost' failed
make: *** [OMCBoost] Error 1

what's wrong? thanks for you time

from online-multiclass-lpboost.

amirsaffari avatar amirsaffari commented on July 3, 2024

I think the linker is not able to find libconfig. Make sure that you install the correct version of the libconfig .

from online-multiclass-lpboost.

yu15129214430 avatar yu15129214430 commented on July 3, 2024

So, where should I install the libconfig to a correct linker? Thank you.

from online-multiclass-lpboost.

StatML avatar StatML commented on July 3, 2024

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

from online-multiclass-lpboost.

admfisher14 avatar admfisher14 commented on July 3, 2024

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

from online-multiclass-lpboost.

RuixiangMa avatar RuixiangMa commented on July 3, 2024

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!

from online-multiclass-lpboost.

hatemalamir avatar hatemalamir commented on July 3, 2024

Thank you, @admfisher14 ! Worked!!

from online-multiclass-lpboost.

Related Issues (5)

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.