Return-Path: Message-ID: From: "Albert Huang" To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] Found -undefined reference- In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_80040_28039600.1148444934571" References: Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 24 May 2006 00:28:54 -0400 ------=_Part_80040_28039600.1148444934571 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline you need to link against libopenobex. it's either gcc -o code code.c -lbluetooth -lopenobex or gcc -o code codec.c -lbluetooth -lopenobex-1.0 or something like that. -albert On 5/23/06, Gloria Saripah Patara wrote: > > Have u ever met the error messages like these : > > undefined reference to 'OBEX_Cleanup' > > i used the command line below: > > gcc -o code code.c -lbluetooth > > it's occur when i try to call certain function or procedure which > declarated in obex.h file (header file in Openobex libraries). > > file code.c is attached inside this message. > ----------------------- > Thanks in advance.... > > > ------=_Part_80040_28039600.1148444934571 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline you need to link against libopenobex.

it's either

gcc -o code code.c -lbluetooth -lopenobex

or

gcc -o code codec.c -lbluetooth -lopenobex-1.0

or something like that.

-albert

On 5/23/06, Gloria Saripah Patara <glowz.saripah@gmail.com> wrote:
Have u ever met the error messages like these :

undefined reference = to 'OBEX_Cleanup'

i used the command line below:

gcc -o code = code.c -lbluetooth

it's occur when i try to call certain function or= procedure which
declarated in obex.h file (header file in Openobex libraries).

f= ile code.c is attached inside this message.
-----------------------
T= hanks in advance....



------=_Part_80040_28039600.1148444934571-- ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users