hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 359 forks source link

Debian 11 version and build #200

Closed lucapaganotti closed 1 year ago

lucapaganotti commented 2 years ago

Hi,

I recently upgraded my linux box from debian 10 to 11. I had installed libconfig and libconfig++ on debian 10, upgrading to debian 11 seemed fine until I tried to compile and build against libconfig.

The package distributed in debian 11 seems to be libconfig version 1.5.x .

Linking against it gives me strange errors:

undefined reference to libconfig::Config::Config() undefined reference to libconfig::Config::~Config()

upon declaration of a Config object:

libconfig::Config cfg;

but the include files clearly states that constructor and virtual destructor of Config objects exist. The libraries were in place in

/usr/lib/x86_64-linux-gnu/

I remove and purge the libconfig distribution packages and clone from github, build && install correctly the last version (1.7) but I get the same errors.

What am I missing?

thomastrapp commented 2 years ago

What am I missing?

Are you sure that you are linking to libconfig++?

Yaksinikos commented 2 years ago

Same here on Manjaro using Clion.

thomastrapp commented 2 years ago

@Translator5 Can you verify that you are linking with libconfig++? For example, by running ldd ./your-executable.

hyperrealm commented 1 year ago

Closing due to lack of information.