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
1
vote
0 answers

Adding libconfig++ to CMake

I'm trying to add libconfig++ to my CMake project, but it still complains Libconfig library is config++ ... CMakeFiles/CustomCamReaderTask.dir/acA2440-20gc_ConfigUtility.cc.o: undefined reference to symbol…
Sonja Brits
  • 141
  • 1
  • 1
  • 10
1
vote
1 answer

Dynamically creating and storing data in a string array

I am using the libconfig c++ library to grab stored data, and need to store that data in a string array in c++ without knowing the number of variables that will be passed through a config file. I know that this isn't really possible in c++, but I am…
1
vote
0 answers

libconfig++8 1.3.2-2 installed but cannot be seen

I need a library in this case libconfig++8 1.3.2-2 and I found a .deb who install it https://launchpad.net/ubuntu/lucid/amd64/libconfig++8/1.3.2-2 But I can not see it in the package manager and when I try to install another package (.deb) which…
1
vote
1 answer

libconfig- unresolved external on visual studio 2010

I'm trying to compile a code with the libConfig library on Windows, in Visual Studio. This is the code: #include "libconfig.hh" using namespace libconfig; int main(int argc, char * argv[]) { Config cfg; return 0; } I downloaded the…
user1673206
  • 1,671
  • 1
  • 23
  • 43
1
vote
1 answer

Rcpp Compilation ERROR: 'clang: error: no such file or directory: '/usr/local/lib/libfontconfig.a'

I was trying to run this peace of code in R (credit to the author): require(Rcpp) require(RcppArmadillo) require(inline) cosineRcpp <- cxxfunction( signature(Xs = "matrix"), plugin = c("RcppArmadillo"), body=' Rcpp::NumericMatrix Xr(Xs);…
Javier
  • 1,530
  • 4
  • 21
  • 48
1
vote
1 answer

Dynamically enumerate keys in libconfig

in libconfig - is it possible to dymanically enumerate keys? As an example, in this example config file from their repo - if someone invented more days in the hours section, could the code dynamically enumerate them and print them out? Looking at…
phatmanace
  • 4,671
  • 3
  • 24
  • 29
1
vote
1 answer

libconfig read list C

I'm trying to read this example of configuration with libconfig library in C, but don't see any example of reading a list and store it... sound = { string_length = 50; sound_folder = "./bin/sound/"; sounds_number = 4; …
Myhay
  • 13
  • 5
1
vote
1 answer

Problems with string and charset using libconfig.h

I'm using libconfig.h to read parameters from a configuration file, but I've problems printing values inside/outside a function. example.h int get_config(); example.c #include #include #include #include…
1
vote
1 answer

Build 'libconfig' as a 32-bit library

I am trying to use the libconfig (http://www.hyperrealm.com/libconfig/ ) for a little utility I am trying to write. I am trying to build libconfig then copy the library file (libconfig.a) to my utility's directory. When I build my utility I get…
lordhog
  • 3,427
  • 5
  • 32
  • 43
1
vote
1 answer

c++ libconfig ambiguous overload

I'm about to compile a pretty easy 'Hello, world' using libconfig. But when I compile such code: #include #include libconfig::Config cfg; std::string target = "World"; int main(void) { try { …
1
vote
2 answers

libconfig: syntax error on @include directive

I'vm trying to write app that will work with libconfig. So I've the next part of code: #include #include #include int main(int argc, char **argv) { if(argc > 1) { char *config_file_path =…
Tural Gurbanov
  • 742
  • 2
  • 7
  • 27
1
vote
1 answer

c++ libconfig and lists

it seems I am unable to find any source telling me how to use lists with libconfig. Let's say my config file looks like this: Layer1 = { Layer2 = { SomeOption = "MyValue"; Options = ( { Option = "Full…
Maru
  • 894
  • 1
  • 12
  • 29
1
vote
1 answer

Something like `libconfig` for Java?

I'm looking for Java framework like libconfig. I like its simple human readable configuration files and also that I can create complex setting values composed from arrays, lists, groups. Is there anything similar for Java (not XML) ?
kravemir
  • 10,636
  • 17
  • 64
  • 111
0
votes
1 answer

c++ libconfig parsing error?

I am trying to leverage the libconfig library in my c++ code to read in data. I have a bitmask binary value that I am trying to read in from an external file. The problem is when I read the data in, I believe libconfig is interpreting or parsing…
5k1zk17
  • 369
  • 1
  • 4
  • 11
0
votes
0 answers

Linking Static libconfig Library to Example Program using CMake in Visual Studio

I am attempting to compile an example program using a static library libconfig++_d.lib with CMake in Visual Studio 2019. I was able to properly build and link my example program using CMake. However, when I go to run the executable, I get an…