当前位置: 技术问答>linux和unix
下载了openobex,并且安装到后,运行apps中的例子obex_test时,出现如下错误请指教
来源: 互联网 发布时间:2016-05-17
本文导语: 本人初学linux下的编程,下载了openobex,并且安装到后,运行apps中的例子obex_test时,出现如下错误请指教,是不是没有安装成功的原因呢? [root@WXL apps]# gcc -c obex_test.c [root@WXL apps]# gcc -o aaa obex_test.c /tmp/ccwXmAHz.o:...
本人初学linux下的编程,下载了openobex,并且安装到后,运行apps中的例子obex_test时,出现如下错误请指教,是不是没有安装成功的原因呢?
[root@WXL apps]# gcc -c obex_test.c
[root@WXL apps]# gcc -o aaa obex_test.c
/tmp/ccwXmAHz.o: In function `obex_event':
obex_test.c:(.text+0x62): undefined reference to `client_done'
obex_test.c:(.text+0x87): undefined reference to `server_done'
obex_test.c:(.text+0xa4): undefined reference to `OBEX_ObjectSetRsp'
obex_test.c:(.text+0xc6): undefined reference to `server_request'
obex_test.c:(.text+0xd3): undefined reference to `OBEX_TransportDisconnect'
obex_test.c:(.text+0xf3): undefined reference to `fillstream'
/tmp/ccwXmAHz.o: In function `inet_connect':
obex_test.c:(.text+0x1c1): undefined reference to `OBEX_TransportConnect'
/tmp/ccwXmAHz.o: In function `main':
obex_test.c:(.text+0x45c): undefined reference to `cobex_open'
obex_test.c:(.text+0x49a): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x4c2): undefined reference to `cobex_connect'
obex_test.c:(.text+0x4c9): undefined reference to `cobex_disconnect'
obex_test.c:(.text+0x4d0): undefined reference to `cobex_write'
obex_test.c:(.text+0x4d7): undefined reference to `cobex_handle_input'
obex_test.c:(.text+0x4de): undefined reference to `cobex_connect'
obex_test.c:(.text+0x4f0): undefined reference to `OBEX_RegisterCTransport'
obex_test.c:(.text+0x537): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x5d2): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x605): undefined reference to `OBEX_FindInterfaces'
obex_test.c:(.text+0x691): undefined reference to `OBEX_Cleanup'
obex_test.c:(.text+0x6db): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x70e): undefined reference to `OBEX_FindInterfaces'
obex_test.c:(.text+0x784): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x7b7): undefined reference to `OBEX_SetUserData'
obex_test.c:(.text+0x834): undefined reference to `get_client'
obex_test.c:(.text+0x844): undefined reference to `setpath_client'
obex_test.c:(.text+0x854): undefined reference to `put_client'
obex_test.c:(.text+0x864): undefined reference to `push_client'
obex_test.c:(.text+0x8b0): undefined reference to `OBEX_TransportConnect'
obex_test.c:(.text+0x8ef): undefined reference to `OBEX_InterfaceConnect'
obex_test.c:(.text+0x92f): undefined reference to `IrOBEX_TransportConnect'
obex_test.c:(.text+0x94f): undefined reference to `connect_client'
obex_test.c:(.text+0x95f): undefined reference to `disconnect_client'
obex_test.c:(.text+0x975): undefined reference to `InOBEX_ServerRegister'
obex_test.c:(.text+0x9ab): undefined reference to `OBEX_ServerRegister'
obex_test.c:(.text+0xa0f): undefined reference to `IrOBEX_ServerRegister'
obex_test.c:(.text+0xa2c): undefined reference to `server_do'
obex_test.c:(.text+0xa5c): undefined reference to `cobex_close'
collect2: ld 返回 1
[root@WXL apps]#
[root@WXL apps]# gcc -c obex_test.c
[root@WXL apps]# gcc -o aaa obex_test.c
/tmp/ccwXmAHz.o: In function `obex_event':
obex_test.c:(.text+0x62): undefined reference to `client_done'
obex_test.c:(.text+0x87): undefined reference to `server_done'
obex_test.c:(.text+0xa4): undefined reference to `OBEX_ObjectSetRsp'
obex_test.c:(.text+0xc6): undefined reference to `server_request'
obex_test.c:(.text+0xd3): undefined reference to `OBEX_TransportDisconnect'
obex_test.c:(.text+0xf3): undefined reference to `fillstream'
/tmp/ccwXmAHz.o: In function `inet_connect':
obex_test.c:(.text+0x1c1): undefined reference to `OBEX_TransportConnect'
/tmp/ccwXmAHz.o: In function `main':
obex_test.c:(.text+0x45c): undefined reference to `cobex_open'
obex_test.c:(.text+0x49a): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x4c2): undefined reference to `cobex_connect'
obex_test.c:(.text+0x4c9): undefined reference to `cobex_disconnect'
obex_test.c:(.text+0x4d0): undefined reference to `cobex_write'
obex_test.c:(.text+0x4d7): undefined reference to `cobex_handle_input'
obex_test.c:(.text+0x4de): undefined reference to `cobex_connect'
obex_test.c:(.text+0x4f0): undefined reference to `OBEX_RegisterCTransport'
obex_test.c:(.text+0x537): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x5d2): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x605): undefined reference to `OBEX_FindInterfaces'
obex_test.c:(.text+0x691): undefined reference to `OBEX_Cleanup'
obex_test.c:(.text+0x6db): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x70e): undefined reference to `OBEX_FindInterfaces'
obex_test.c:(.text+0x784): undefined reference to `OBEX_Init'
obex_test.c:(.text+0x7b7): undefined reference to `OBEX_SetUserData'
obex_test.c:(.text+0x834): undefined reference to `get_client'
obex_test.c:(.text+0x844): undefined reference to `setpath_client'
obex_test.c:(.text+0x854): undefined reference to `put_client'
obex_test.c:(.text+0x864): undefined reference to `push_client'
obex_test.c:(.text+0x8b0): undefined reference to `OBEX_TransportConnect'
obex_test.c:(.text+0x8ef): undefined reference to `OBEX_InterfaceConnect'
obex_test.c:(.text+0x92f): undefined reference to `IrOBEX_TransportConnect'
obex_test.c:(.text+0x94f): undefined reference to `connect_client'
obex_test.c:(.text+0x95f): undefined reference to `disconnect_client'
obex_test.c:(.text+0x975): undefined reference to `InOBEX_ServerRegister'
obex_test.c:(.text+0x9ab): undefined reference to `OBEX_ServerRegister'
obex_test.c:(.text+0xa0f): undefined reference to `IrOBEX_ServerRegister'
obex_test.c:(.text+0xa2c): undefined reference to `server_do'
obex_test.c:(.text+0xa5c): undefined reference to `cobex_close'
collect2: ld 返回 1
[root@WXL apps]#
|
单独编译文件是不行的,因为他还要找头文件、库文件以及一些宏定义,应该是用make来生成,包里面的readme和install里面应该有相应说明
|
http://dev.zuckschwerdt.org/openobex/wiki/ObexProjects
The OpenOBEX Project is the foundation for many interesting applications. Here is a list which should give you some impression on OpenOBEX usability and a quick start.
The OpenOBEX Project is the foundation for many interesting applications. Here is a list which should give you some impression on OpenOBEX usability and a quick start.
|
动态库或者静态库什么的,都得在目标机得文件系统中有