using iniparser.h
Robert Bonomi
bonomi at mail.r-bonomi.com
Thu Dec 27 08:31:03 UTC 2012
> From owner-freebsd-questions at freebsd.org Thu Dec 27 01:39:38 2012
> Date: Wed, 26 Dec 2012 23:36:37 -0800 (PST)
> From: Jack Mc Lauren <jack.mclauren at yahoo.com>
> Subject: using iniparser.h
> To: FreeBSD Global Users Mailing List <freebsd-questions at freebsd.org>
>
> Hi guys
>
> Take a look to the code below :
>
> #include <iostream>
> #include <string.h>
> #include <iniparser.h>
> #include <dictionary.h>
>
> using namespace std;
>
> int main()
> {
> dictionary *dict = new dictionary;
> dirent *dir = new dirent;
> char *c;
> dict = iniparser_load("/tmp/test.ini");
> c = iniparser_getstring(dict,"s","w");
> cin.get();
> return 0;
> }
>
> I have this error :
>
> ***main.cpp:17: undefined reference to `iniparser_load'
> ***/main.cpp:18: undefined reference to `iniparser_getstring'
>
> any suggestions ?
a) your code doesn't match the errors -- 3-4 lines missing.
b) did you specify the iniparser lib when you tried to compile ?
>
> Thanks in advance ...
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list