Re: using iniparser.h

2012-12-27 Thread Robert Bonomi
> 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 
> Subject: using iniparser.h
> To: FreeBSD Global Users Mailing List 
>
> Hi guys
>
> Take a look to the code below :
>
> #include 
> #include 
> #include 
> #include 
>
> 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"


using iniparser.h

2012-12-26 Thread Jack Mc Lauren
Hi guys

Take a look to the code below :

#include 
#include 
#include 
#include 

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 ?

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"