[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] newbie question, compile problems



hey everybody

I started recently on a project with BlueMod and uClinux-2.4.x. It was no
problem to start and run the Bluetooth stack on the BlueMod.
But now I try to write my own Application and I get stuck.

I just include btcommon.h and compile it so that I can run the program on
BlueMod (e.g. m68k-elf-gcc -m68000 -Wl, -elf2flt -o test test.c -lc). But
then I got plenty of parse errors in local.h :

In file included from
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/btcommon.h:57
,
                 from test.c:1:
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:74:
parse error before `cpu_to_le16'
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:74:
parse error before `x'
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h: In
function `cpu_to_le16':
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:74:
`x' undeclared (first use in this function)
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:74:
(Each undeclared identifier is reported only once
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:74:
for each function it appears in.)
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h: At
top level:
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:75:
parse error before `cpu_to_le32'
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:75:
parse error before `x'
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h: In
function `cpu_to_le32':
/home/BlueMod/uClinux-hcv/OpenBT/linux/include/linux/bluetooth/local.h:75:
`x' undeclared (first use in this function)

can somebody kindly tell me what I'm doing wrong.
probably it is just a simple mistake and I'm to blind to see it.

thanks in advance
mathias
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com