其中之一的一個header在我include的時候出現很多error code
以下是節錄:
- 代碼: 選擇全部
In file included from info.h:4,
from myform.ui.h:10,
from .ui/myform.cpp:21:
/usr/include/affix/hci_cmds.h: In function `int hci_exec_cmd(int, short
unsigned int, void*, int, long long unsigned int, int, void*, int)':
/usr/include/affix/hci_cmds.h:75: error: invalid conversion from `void*' to `
HCI_Command_Packet_Header*'
In file included from info.h:4,
from myform.ui.h:10,
from .ui/myform.cpp:21:
/usr/include/affix/hci_cmds.h: In function `int hci_recv_event_any(int, int*,
void*, int)':
/usr/include/affix/hci_cmds.h:115: error: invalid conversion from `void*' to `
sockaddr*'
/usr/include/affix/hci_cmds.h:115: error: invalid conversion from `int*' to `
socklen_t*'
In file included from info.h:4,
from myform.ui.h:10,
from .ui/myform.cpp:21:
/usr/include/affix/hci_cmds.h: In function `int HCI_Inquiry(int, unsigned char,
unsigned char, INQUIRY_ITEM*, __u8*)':
/usr/include/affix/hci_cmds.h:144: error: invalid conversion from `void*' to `
Inquiry_Result_Event*'
/usr/include/affix/hci_cmds.h:145: error: invalid conversion from `void*' to `
Inquiry_Complete_Event*'
In file included from info.h:4,
rom myform.ui.h:10,
from .ui/myform.cpp:21:
/usr/include/affix/hci_cmds.h: In function `int HCI_Disconnect(int, short
unsigned int, unsigned char)':
/usr/include/affix/hci_cmds.h:227: error: invalid conversion from `void*' to `
Disconnection_Complete_Event*'
看起來好像都是原本source就有的bug(都是型態轉換錯誤)
但是網路上又沒人反應這個問題,請問是我哪邊弄錯了呢?