> From owner-freebsd-questi...@freebsd.org  Thu Dec 27 01:39:38 2012
> Date: Wed, 26 Dec 2012 23:36:37 -0800 (PST)
> From: Jack Mc Lauren <jack.mclau...@yahoo.com>
> Subject: using iniparser.h
> To: FreeBSD Global Users Mailing List <freebsd-questions@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to