If the WiiMote support is build, the file <bluetooth/bluetooth.h> is also included, e.g. because of the bt_get_... functions.
The file comes from the Bluez library.
Recent versions break C++ support (casting void* to anything). So the most distributions are using the following patch to allow usage with C++ code:
http://www.spinics.net/lists/linux-bluet...20995.html
Because you are using the C++x0 standard, the keyword "typeof" is not available but __typeof__ is (for gcc).
Until Bluez is changing something, the following patch allows compilation again:
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2012-03-03 17:17:50.303444767 +0000
+++ b/CMakeLists.txt 2012-03-03 17:17:03.688443435 +0000
@@ -553,6 +553,7 @@
# Start compiling our code
#
add_definitions(-std=c++0x)
+add_definitions(-Dtypeof=__typeof__)
add_subdirectory(Source)
I also reported the typeof issue to the Bluez mailing list:
http://permalink.gmane.org/gmane.linux.b...rnel/22294
The file comes from the Bluez library.
Recent versions break C++ support (casting void* to anything). So the most distributions are using the following patch to allow usage with C++ code:
http://www.spinics.net/lists/linux-bluet...20995.html
Because you are using the C++x0 standard, the keyword "typeof" is not available but __typeof__ is (for gcc).
Until Bluez is changing something, the following patch allows compilation again:
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt 2012-03-03 17:17:50.303444767 +0000
+++ b/CMakeLists.txt 2012-03-03 17:17:03.688443435 +0000
@@ -553,6 +553,7 @@
# Start compiling our code
#
add_definitions(-std=c++0x)
+add_definitions(-Dtypeof=__typeof__)
add_subdirectory(Source)
I also reported the typeof issue to the Bluez mailing list:
http://permalink.gmane.org/gmane.linux.b...rnel/22294