$ g++ -o test main.cpp -liniparser /tmp/ccrYIqBp.o: In function `main': main.cpp:(.text+0x15): undefined reference to `iniparser_load(char const*)' main.cpp:(.text+0x33): undefined reference to `iniparser_getint(_dictionary_*, char const*, int)' collect2: ld 返回 1 Reproducible: Always
Created attachment 186981 [details] iniparser-3.0b-r1.ebuild
Created attachment 186983 [details, diff] iniparser-3.0b-cpp.patch
I'd say it's invalid - either bother upstream to accept these changes, or 'extern "C"' around the #include'd header.
Added in -r2. Thanks!