Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
libconfig.h++
✓ #include <libconfig.h++>
Reads a configuration file and retrieves a value using libconfig.
#include <libconfig.h++>
#include <iostream>
int main() {
libconfig::Config cfg;
try {
cfg.readFile("config.cfg");
std::string name;
cfg.lookupValue("name", name);
std::cout << "Name: " << name << std::endl;
} catch (const libconfig::FileIOException &fioex) {
std::cerr << "I/O error while reading file." << std::endl;
}
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.