Questions tagged [libconfig]

Libconfig is a simple library for processing structured configuration files. This file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code. The library includes bindings for both the C and C++ languages. It works on POSIX-compliant UNIX and UNIX-like systems (GNU/Linux, Mac OS X, Solaris, FreeBSD), Android, and Windows (2000, XP and later).

Libconfig is a simple library for processing structured configuration files. This file format is more compact and more readable than XML. And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code.

Libconfig is very compact — a fraction of the size of the expat XML parser library. This makes it well-suited for memory-constrained systems like handheld devices.

The library includes bindings for both the C and C++ languages. It works on POSIX-compliant UNIX and UNIX-like systems (GNU/Linux, Mac OS X, Solaris, FreeBSD), Android, and Windows (2000, XP and later).

78 questions
0
votes
0 answers

Runtime library version different from build version

So I build a simple C program with -libconfig and -L /usr/lib64/ something like: clang *.c -o app -L /usr/lib64/ -lconfig I'm using centos6 and got the library here /usr/lib64/libconfig.so.8 It builds all fine but when I run it I get this: error…
Semo
  • 111
  • 1
  • 10
0
votes
1 answer

VS ERROR: libconfig.obj : error LNK2019: unresolved external symbol _S_ISDIR referenced in function _config_read_file

Download libconfig from http://www.hyperrealm.com/libconfig/libconfig_manual.html. But there is error on windows. libconfig.obj : error LNK2019: unresolved external symbol _S_ISDIR referenced in function _config_read_file
mollywml
  • 21
  • 2
0
votes
1 answer

libconfig Undefined symbols for architecture x86_64

I'm trying to run my first basic program with libconfig in c++. I compiled with g++ testing.cpp -o testing. #include #include #include using namespace std; using namespace libconfig; int main(){ Config…
TriHard8
  • 592
  • 6
  • 18
0
votes
0 answers

Compile libconfig++ program

I downloaded libconfig-1.4.9 on ubuntu 16.04.1LTS http://igor-zivkovic.from.hr/BLFS/general/libconfig.html and installed. Examples which were included in lib passed successfully. I copied example1 to another directory. Compile g++ example1.cpp…
user2856064
  • 541
  • 1
  • 8
  • 25
0
votes
1 answer

c++ passing class instance as float variable in libconfig++ :: lookupValue()

I have this small class that revolves around a single double variable class SensorTrainData { public: SensorTrainData() : trainingRangeFactor(2.0f) {} SensorTrainData( const double & _factor ) { setFactor(_factor); } …
nass
  • 1,453
  • 1
  • 23
  • 38
0
votes
1 answer

Linux, using libconfig library

Simple task to open wifi.conf with libconfig library ends with "Parse error at /tmp/wifi.conf:6 - syntax error" The "problem" config line is just: WIFI_MODE=sta Sources: #include ... cfg.readFile("/tmp/wifi.conf"); ... What can be a…
Sir J
  • 25
  • 4
0
votes
1 answer

LibConfig - How to get container list

I have the following configuration, I know how to loop through each of the sections with config_lookup(), but I do not know how to find the name of each of the section! downloads = { john = { configid = 1; status = 1; …
Amirul I
  • 191
  • 3
  • 15
0
votes
2 answers

Copy a const char * into a char **

I am using the libconfig library to read some configuration data from a file. I am having trouble extracting out the function for parsing the information and cleaning up afterwards. Running strcpy(*hostname, tmp) causes a core dump. hostname,…
TheEndIsNear
  • 395
  • 3
  • 17
0
votes
1 answer

libconfig 1.4.9 compile for Windows

I have a little trouble here. I know how to compile libconfig for linux with ./configure file and make, but i have no idea how to do the same for the windows. INSTALL file doesn't say anything about compiling it on windows or cross compiling it to…
0
votes
0 answers

How to install Libconfig for Eclipse -C on Windows?

Could someone tell me the steps to install the LibConfig library on Eclipse running C in a windows system.
Anamika Ana
  • 165
  • 1
  • 3
  • 11
0
votes
1 answer

old libconfig version support of config_setting_get_string

I have a program in C that was running perfectly in a debian box. I have been asked to compile and run it on CentOs 6.5. Everything compiles perfectly except the part where I try to get a value from a configuration file. Code is writen like…
jordi
  • 1,157
  • 1
  • 13
  • 37
0
votes
1 answer

Linking with libconfig in c++ on OSX

I have a config file that contains: #include "libconfig.h++" I have installed libconfig via homebrew and I am trying to compile my c++ program so that I can use the library but I am having trouble linking to it. The location of the libconfig .a…
Nate Uni
  • 933
  • 1
  • 12
  • 26
0
votes
0 answers

Add .lib to solution and link to it in Visual Studio 2013 (libconfig)

I am trying to add libconfig (a .lib) to my VS13 solution. I downloaded the tar ball, extract, and build the project. The manual states: to link with the library, specify `-lconfig++' as an argument to the linker. From Linking dll in Visual…
Elpezmuerto
  • 5,391
  • 20
  • 65
  • 79
0
votes
1 answer

Read values of config file error

I have the following Config.cfg file and I want to read the values of…
dali1985
  • 3,263
  • 13
  • 49
  • 68
0
votes
1 answer

Building libconfig 64bit on Mac OS X

I would like to build and install libconfig as 64-bit on my Mac OS X (v10.8.3). Which are the commands that I could use inside the terminal? If I simply use ./configure and sudo make install the library will be installed as 32-bit. Otherwise... How…
vdenotaris
  • 13,297
  • 26
  • 81
  • 132