From owner-freebsd-questions@FreeBSD.ORG Thu Dec 27 07:36:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C549694D for ; Thu, 27 Dec 2012 07:36:44 +0000 (UTC) (envelope-from jack.mclauren@yahoo.com) Received: from nm20.bullet.mail.bf1.yahoo.com (nm20.bullet.mail.bf1.yahoo.com [98.139.212.179]) by mx1.freebsd.org (Postfix) with ESMTP id 62F838FC0A for ; Thu, 27 Dec 2012 07:36:44 +0000 (UTC) Received: from [98.139.215.143] by nm20.bullet.mail.bf1.yahoo.com with NNFMP; 27 Dec 2012 07:36:38 -0000 Received: from [98.139.212.214] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 27 Dec 2012 07:36:38 -0000 Received: from [127.0.0.1] by omp1023.mail.bf1.yahoo.com with NNFMP; 27 Dec 2012 07:36:38 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 211532.12905.bm@omp1023.mail.bf1.yahoo.com Received: (qmail 49051 invoked by uid 60001); 27 Dec 2012 07:36:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1356593797; bh=BC+yVs7WwVgpOlMkyyNQNkwBs8lhS5iIasa/z5P0+AI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=TgCqAM4Hm58ZBKr3iDhLtPRxQBmfgoobnASZmmi9ILVU5DlkSWC6k/hmjlu0uCNIRFa3c8oJd+/+JB1qcLy/FPUMac3zC+nXXUzrG54pUtxgKtIjKItmWipdMPgjI+Zgt/UV90ZqyrqsVljbPEM2B7EKzAlkvJVY+bqn+vjt/lE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=WeC+Jk7qIcV66PQteyMG0m5rLsNQJZhudi2AVgU1O4iD9lmDvlrGsk+SeVU1fJJo7ZMYfg+8Zy0SOOGnAdXfEYnsQLq9glzMkQyyfm+NUGfwts71FVF4mp0bORDWW4BlU2yQCLvSfN9gxPpVYpi5nYCHh3AZIC9XmSWIKzFVQRU=; X-YMail-OSG: Q89eegMVM1mat3AmePYc1Uiw0_0BK99.4FpVOdPnF1aR.Wk ETXpi4RcKw5rguwWHFxem0bwKD6UWRnqzEi7ApNcd7iOY.VI4AJwTYzJ1DBp KBeLTuto_fEHNQH9RURUiFbVFyfkUpBFTSpsGHPSQ7d6W1UkTIX6yWUNPiy3 1tMTNWUOhv81r37LMxEweZY2Xs0c4SmAXxVWJvSG2OamWJyrxI.FVi0tJSer OdsotwcEZyfkvkzkmQGNVt0kPkIc8a.tKcO31MFzVmBZ.KwXjFKTZytP9Yo. nK6H_SG9kRN8cl_2tf454fPcGQdE4Q1mkK0OnnS_KO.yuP0NZ3EQH4pQHLYG dZXg90YqjGNE_.2krd2ZBA8pB0h4ttkdvkVLu59Wmn4RgqBp_GFTJPEx_eju 8d0VE7o_f5NdqC73uPBmkG2o66WufmqEk9Z_ntzAZfFQK0Owb5HR31WPKlFU - Received: from [89.165.120.140] by web160105.mail.bf1.yahoo.com via HTTP; Wed, 26 Dec 2012 23:36:37 PST X-Rocket-MIMEInfo: 001.001, SGkgZ3V5cwoKVGFrZSBhIGxvb2sgdG8gdGhlIGNvZGUgYmVsb3cgOgoKI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nLmg.CiNpbmNsdWRlIDxpbmlwYXJzZXIuaD4KI2luY2x1ZGUgPGRpY3Rpb25hcnkuaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKwqAgwqAgZGljdGlvbmFyeSAqZGljdCA9IG5ldyBkaWN0aW9uYXJ5OwrCoCDCoCBkaXJlbnQgKmRpciA9IG5ldyBkaXJlbnQ7CsKgIMKgIGNoYXIgKmM7CsKgIMKgIGRpY3QgPSBpbmlwYXJzZXJfbG9hZCgiL3RtcC90ZXMBMAEBAQE- X-Mailer: YahooMailWebService/0.8.129.483 Message-ID: <1356593797.48993.YahooMailNeo@web160105.mail.bf1.yahoo.com> Date: Wed, 26 Dec 2012 23:36:37 -0800 (PST) From: Jack Mc Lauren Subject: using iniparser.h To: FreeBSD Global Users Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Jack Mc Lauren List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 07:36:44 -0000 Hi guys=0A=0ATake a look to the code below :=0A=0A#include =0A#in= clude =0A#include =0A#include =0A=0Aus= ing namespace std;=0A=0Aint main()=0A{=0A=A0 =A0 dictionary *dict =3D new d= ictionary;=0A=A0 =A0 dirent *dir =3D new dirent;=0A=A0 =A0 char *c;=0A=A0 = =A0 dict =3D iniparser_load("/tmp/test.ini");=0A=A0 =A0 c =3D iniparser_get= string(dict,"s","w");=0A=A0 =A0 cin.get();=0A=A0 =A0 return 0;=0A}=0A=0AI h= ave this error :=0A=0A***main.cpp:17: undefined reference to `iniparser_loa= d'=0A***/main.cpp:18: undefined reference to `iniparser_getstring'=0A=0Aany= suggestions ?=0A=0AThanks in advance ... From owner-freebsd-questions@FreeBSD.ORG Thu Dec 27 08:31:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 78437524 for ; Thu, 27 Dec 2012 08:31:03 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 1F5768FC0C for ; Thu, 27 Dec 2012 08:31:02 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id qBR8Ur0c041990; Thu, 27 Dec 2012 02:30:53 -0600 (CST) Date: Thu, 27 Dec 2012 02:30:53 -0600 (CST) From: Robert Bonomi Message-Id: <201212270830.qBR8Ur0c041990@mail.r-bonomi.com> To: freebsd-questions@freebsd.org, jack.mclauren@yahoo.com Subject: Re: using iniparser.h In-Reply-To: <1356593797.48993.YahooMailNeo@web160105.mail.bf1.yahoo.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 08:31:03 -0000 > From owner-freebsd-questions@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-unsubscribe@freebsd.org" >