Return-Path: From: Alain Volmat To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] rfcomm question 3 Message-ID: <20050203105901.GC5792@snoopy.src.ricoh.co.jp> References: <20050203052237.GE9259@snoopy.src.ricoh.co.jp> <20050203105034.93588.qmail@web60908.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <20050203105034.93588.qmail@web60908.mail.yahoo.com> 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: Thu, 3 Feb 2005 19:59:01 +0900 Hi Michael, ba2str is a function provided by bluez-libs. Linking your program against the bluez-lib might solve your problem. add -lbluetooth to your command line. Alain * Ka Kin Cheung [Thu, 3 Feb 2005 at 18:50 +0800] > Hi all users! > I first give a thank to Alain Volmat that points > out my fault and confusion about rctest.c. Then I put > the parts do_listen and recv_mode in my main porgram. > But when I compile, strange things occur..... > As my program is MySQL C API, I have to compile > with "gcc -c -I/usr/include/mysql XX.c", and it is no > problem. But when I type "gcc -o XX XX.o > -L/usr/lib/mysql -lmysqlclient", following occurs: > bic_midterm.o(.text+0x1c0a): In function `do_listen': > : undefined reference to `ba2str' > collect2: ld returned 1 exit status > I checked with rctest.c, but there is not a function > for ba2str. On the other hand, tv2fl can be accepted > as there is a function in rctest.c. Here are the > include files in my main program.=20 > #ifdef HAVE_CONFIG_H > #include > #endif > =20 > =20 > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > =20 > =20 > #include > include > #include > #include > #include > #include > #include > #include > #include > #include >=20 > #include > =20 > =20 > #include > #include > #include > #include > #include > #include > =20 > =20 > #include > Let's see if there is any function that is missing. If > there is no function missing, where can I find the > ba2str function? I believe that if ba2str function can > be found declared, the program can be run. Thank you > very much for your kindness. > Michael >=20 > _______________________________________________________________________ > =E6=96=B0=E5=B9=B4=E9=A1=98=E6=9C=9B=E7=AC=AC=E4=B8=80=E4=BD=8D : =E6=89= =BE=E5=88=B0=E5=8F=8B=E7=B7=A3=E4=BA=BA > http://personals.yahoo.com.hk >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users >=20 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users