Linux bluetooth development
 help / color / mirror / Atom feed
From: Alain Volmat <avolmat@src.ricoh.co.jp>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] rfcomm question 3
Date: Thu, 3 Feb 2005 19:59:01 +0900	[thread overview]
Message-ID: <20050203105901.GC5792@snoopy.src.ricoh.co.jp> (raw)
In-Reply-To: <20050203105034.93588.qmail@web60908.mail.yahoo.com>

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]
<quote>
> 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 <config.h>
> #endif
>                                                      =20
>                         =20
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <sys/ioctl.h>
> #include <sys/wait.h>
> #include <sys/types.h>
> #include <sys/time.h>
> #include <sys/socket.h>
> #include <string.h>
> #include <termios.h>
> #include <syslog.h>
> #include <errno.h>
> #include <ctype.h>
> #include <signal.h>
>                                                      =20
>                         =20
> #include <modeminit.h>
> include <modeminit.c>
> #include <logging.c>
> #include <logging.h>
> #include <extras.h>
> #include <extras.c>
> #include <locking.c>
> #include <locking.h>
> #include <alarm.h>
> #include <alarm.c>
>=20
> #include <sys/file.h>
>                                                      =20
>                         =20
> #include <bluetooth/bluetooth.h>
> #include <bluetooth/hci.h>
> #include <bluetooth/hci_lib.h>
> #include <bluetooth/rfcomm.h>
> #include <bluetooth/sdp.h>
> #include <bluetooth/sdp_lib.h>
>                                                      =20
>                         =20
> #include <mysql/mysql.h>
> 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
</quote>


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

  reply	other threads:[~2005-02-03 10:59 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-28 14:06 [Bluez-users] rfcomm question 1 Ka Kin Cheung
2005-01-28 17:36 ` Marcel Holtmann
2005-01-29  5:32   ` Ka Kin Cheung
2005-01-29 14:03     ` Marcel Holtmann
2005-01-31 13:41       ` Ka Kin Cheung
2005-01-31 14:22         ` Marcel Holtmann
2005-01-31 14:30           ` Ka Kin Cheung
2005-01-31 14:38             ` Marcel Holtmann
2005-02-01  6:25               ` [Bluez-users] rfcomm question 3 Ka Kin Cheung
2005-02-01  8:14                 ` Marcel Holtmann
2005-02-01 14:39                   ` Ka Kin Cheung
2005-02-02  2:49                   ` Ka Kin Cheung
2005-02-02  3:10                     ` Marcel Holtmann
2005-02-02  4:54                       ` Ka Kin Cheung
2005-02-02  5:34                         ` Marcel Holtmann
2005-02-03  3:42                           ` Ka Kin Cheung
2005-02-03  5:22                             ` Alain Volmat
2005-02-03 10:50                               ` Ka Kin Cheung
2005-02-03 10:59                                 ` Alain Volmat [this message]
2005-02-03 13:01                                   ` Ka Kin Cheung
2005-02-03 13:20                                     ` Marcel Holtmann
2005-02-03 14:26                                       ` Ka Kin Cheung
2005-02-03 14:54                                         ` Marcel Holtmann
2005-02-04 16:56                                     ` Marco Trudel
2005-02-05 12:48                                       ` Ka Kin Cheung
2005-02-05 13:17                                         ` Marco Trudel
2005-02-05 13:51                                           ` Marcel Holtmann
2005-02-05 14:00                                             ` Marco Trudel
2005-02-05 14:14                                               ` Marcel Holtmann
2005-02-05 17:39                                                 ` Marco Trudel
2005-02-05 18:08                                                   ` Marcel Holtmann
2005-02-17  5:37                                                     ` Ka Kin Cheung
2005-02-17  6:28                                                       ` Alain Volmat
2005-02-17  9:08                                                       ` mike
2005-02-17 13:08                                                       ` Marco Trudel
2005-02-17 13:54                                                         ` Ka Kin Cheung
2005-02-17 14:10                                                           ` Marco Trudel
2005-02-17 14:43                                                             ` Ka Kin Cheung
2005-02-17 17:04                                                               ` Marco Trudel
2005-02-18  3:28                                                                 ` Ka Kin Cheung
2005-02-19  6:49                                                                   ` Marco Trudel
2005-02-19  8:27                                                                     ` Ka Kin Cheung
2005-02-19 10:06                                                                       ` Marco Trudel
2005-02-19 13:45                                                                         ` Ka Kin Cheung
2005-02-18  3:33                                                                 ` Ka Kin Cheung
2005-02-18  7:51                                                                   ` [Bluez-users] multiple instances of OPUSH server Janice M. Ballesteros
2005-02-17 13:14                                                       ` [Bluez-users] rfcomm question 3 Marco Trudel
2005-02-02  3:16                     ` Alain Volmat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050203105901.GC5792@snoopy.src.ricoh.co.jp \
    --to=avolmat@src.ricoh.co.jp \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox