LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth (http://www.linuxquestions.org/questions/programming-9/arm-none-linux-gnueabi-bin-ld-cannot-find-lbluetooth-762691/)

feiyinziiu 10-17-2009 11:54 PM

arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth
 
Hello
Recently when I cross compiling the bluetoot test programm,I get the
problem below:
# arm-linux-gcc -o bluetest bluetest.c -lbluetooth
arm-none-linux-gnueabi/bin/ld: cannot find -lbluetooth
collect2: ld returned 1 exit status

But if I use gcc to compile ,that works correctly:
gcc -o bluetest bluetest.c -lbluetooth

My bluetooth lib is put below:

[root@feiyinziiu lib]# pwd
/usr/local/lib
[root@feiyinziiu lib]# ls
alsa-lib libbluetooth.a libbluetooth.so libbluetooth.so.1.0.25 libbluetooth.so.2.11.2
bluetooth libbluetooth.la libbluetooth.so.1 libbluetooth.so.2 pkgconfig


What can I do ?
Thank you.

jhwilliams 10-18-2009 12:03 AM

Pal, no double-posting.


All times are GMT -5. The time now is 10:10 PM.