2006-05-23 10:29:06

by Gloria Saripah Patara

[permalink] [raw]
Subject: [Bluez-users] Found -undefined reference-

Have u ever met the error messages like these :

undefined reference to 'OBEX_Cleanup'

it's occur when i try to call certain function or procedure which declarated
in other file (header file).

there is a file to act as an interface that declare form of the procedure.
then, there is a file to act as explanator which explain what the procedure
doing.
And latter, a file that using the second file.

-----------------------
Thanks in advance....


Attachments:
(No filename) (447.00 B)
(No filename) (499.00 B)
Download all attachments

2006-05-24 04:28:54

by Albert Huang

[permalink] [raw]
Subject: Re: [Bluez-users] Found -undefined reference-

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 <[email protected]> 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....
>
>
>


Attachments:
(No filename) (652.00 B)
(No filename) (0.98 kB)
Download all attachments

2006-05-24 03:41:28

by Gloria Saripah Patara

[permalink] [raw]
Subject: [Bluez-users] Found -undefined reference-

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....


Attachments:
(No filename) (373.00 B)
code.c (1.02 kB)
Download all attachments

2006-05-24 03:40:11

by Gloria Saripah Patara

[permalink] [raw]
Subject: [Bluez-users] Found -undefined reference-

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....


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2006-05-23 15:46:38

by Albert Huang

[permalink] [raw]
Subject: Re: [Bluez-users] Found -undefined reference-

Gloria,

When you have problems compiling source code, you need to give more detail
about your problem, otherwise no one will know what you're talking about.
Specifically, make your code available by posting it on your web site or
including it as an attachment if it's short. Additionally, describe the
operating system you're using, the versions of the relevant libraries and
compiler, and the _exact_ command you're using to compile your program.

Saying things like "there is a file..." means absolutely nothing and doesn't
help anyone resolve your problems.

And _please_ read a FAQ or two on mailing list etiquette.

-albert

On 5/23/06, Gloria Saripah Patara <[email protected]> wrote:
>
> Have u ever met the error messages like these :
>
> undefined reference to 'OBEX_Cleanup'
>
> it's occur when i try to call certain function or procedure which
> declarated in other file (header file).
>
> there is a file to act as an interface that declare form of the procedure.
>
> then, there is a file to act as explanator which explain what the
> procedure doing.
> And latter, a file that using the second file.
>
> -----------------------
> Thanks in advance....
>


Attachments:
(No filename) (1.15 kB)
(No filename) (1.50 kB)
Download all attachments