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
12
votes
2 answers

Why does visual studio create a .LIB along with the .DLL?

I have a project "Logger" wherein the configuration type is .dll. "Logger" uses "libconfig" (an open source config parser). Currently, I have a separate project for "libconfig" and its configuration type is .lib I added "libconfig" to Logger's…
Raja
  • 2,846
  • 5
  • 19
  • 28
5
votes
0 answers

How to parse config files generated by libconfig in javascript

A few applications use https://github.com/hyperrealm/libconfig to generate configuration files. I was wondering if there were any wrappers or libraries or any way in general that would parse/write this kind of configuration file from disk but using…
JCQuintas
  • 1,060
  • 1
  • 8
  • 18
4
votes
2 answers

Storing crypted data with libconfig

I'm using the libconfig to create an configuration file and one of the fields is a content of a encrypted file. The problem occurs because in the file have some escapes characters that causes a partial storing of the content. What is the best way…
Juliano Oliveira
  • 868
  • 1
  • 9
  • 29
4
votes
1 answer

libconfig: error when compiling using CMake

I'm using libconfig inside a project and thought convenient to compile it with the rest of the code using my nested CMakeLists.txt scripts. Here are the contents of the directory where the libconfig source files are located: [config] ->…
M4urice
  • 571
  • 6
  • 15
4
votes
1 answer

libconfig not static linkage. how to compile into program

I download the archive with libconfig, but I do not wont to install it into the system. I want to compile it as static library and link it from program girectory or directly link it into my program on the program compile time? Any ideas how to do…
abrahab
  • 2,430
  • 9
  • 39
  • 64
3
votes
2 answers

Parsing libconfig files in PHP

I need to read and write variables from a "libconfig" formatted file in PHP. But I can't find a library for that anywhere. I know about the C/C++ library of course, but we'd have to write an extension to use that. Does such a library or extension…
GoatRider
  • 1,213
  • 6
  • 12
3
votes
1 answer

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

I'm trying to build a game engine, and I've turned to libconfig to handle all my configuration needs. I'm in the process of building an asset manager that will use config files parsed by libconfig to load images, sounds, etc. I'm running into an…
Sean Hagen
  • 752
  • 10
  • 30
3
votes
1 answer

importing an array or list setting using libconfig

I've never really worked with configuration files before, but I'm interested in using one as a parameter file for an engineering code I'm writing. Not being a professional programmer, I've spent two days trying to figure out how to import a simple…
JMJ
  • 143
  • 1
  • 7
3
votes
2 answers

Global struct memory error

My program's reading from config file using libconfig and saving values to the global struct. It's working fine but valgrind says there's error. And the error only shows for char pointer variable. What is that error and how to fix that ? Thank…
Odko
  • 151
  • 1
  • 1
  • 8
3
votes
1 answer

How to write to a config file using libconfig?

I have been using libconfig++ library to read from the config files and it works great. Plus there is decent enough information about the APIs that facilitate the read operations from structured config files using c++. However, i couldn't find…
Sahil
  • 359
  • 2
  • 5
  • 13
3
votes
7 answers

How do I properly turn a const char* returned from a function into a const char** in C?

In short, I would like to do this: const char **stringPtr = &getString(); However, I understand that you can't & on rvalues. So I'm stuck with this: const char *string = getString(); const char **stringPtr = &string; I can live with two lines. Am…
spirulence
  • 701
  • 3
  • 11
3
votes
2 answers

CMake: Static and dynamic linking based on BUILD_TYPE

I am developing a small simulation software that depends on two libraries, the GSL and the libconfig. As a build system, I use CMake. For both the GSL and libconfig, I found cmake files and copied them into the cmake/ directory of my project. The…
janoliver
  • 7,744
  • 14
  • 60
  • 103
2
votes
1 answer

cmake compiling problem for c++ application with libconfig library

I am trying to run simple c++ application on Ubuntu 18.04 with using libconfig 1.7.2 library which was installed with vcpkg version 2018.11.23-unknownhash (Microsoft C++ Library Manager for Windows), cmake version is 3.14.3. Static library was…
Pasha
  • 89
  • 9
2
votes
1 answer

How to avoid to delete treemodel info when editing?

Good morning. I have finally created a treeconfig program to read a txt, then edit it in the interface, and then save it, but I have a problem. I know that there is a treemodel example that is editable…
Minikornio
  • 47
  • 5
2
votes
0 answers

MSBuild: error MSB4126: The specified solution configuration "Release|AnyCPU" is invalid

I am stumping my head on this. I am trying to build libconfig on Windows - an OS that I am very unfamiliary with. I have installed the MSBuild Tools. I am able to compile CMake projects by using the NMake Generator and then compiling the resulting…
Martijn Otto
  • 878
  • 4
  • 21
1
2 3 4 5 6