- 论坛徽章:
- 0
|
如题:
错误如下:
In file included from networkoperation.h:32,
from h3c.cpp:16:
global.h:44: warning: malformed '#pragma pack(push[, id], <n>)' - ignored
global.h:120: warning: #pragma pack(pop[, id], <n>) is not supported on this tar get
g++ -O2 networkoperation.cpp -c -o networkoperation.o
In file included from networkoperation.h:32,
from networkoperation.cpp:2:
global.h:44: warning: malformed '#pragma pack(push[, id], <n>)' - ignored
global.h:120: warning: #pragma pack(pop[, id], <n>) is not supported on this tar get
networkoperation.cpp: In function `void GetInterfaceMac(std::string, int*)':
networkoperation.cpp:33: error: `SOCK_PACKET' was not declared in this scope
networkoperation.cpp:41: error: `SIOCGIFHWADDR' was not declared in this scope
networkoperation.cpp:48: error: 'union ifreq::<anonymous>' has no member named ' ifru_hwaddr'
networkoperation.cpp: In function `int GetSystemInterfaceInfo(InterfaceInfo*)':
networkoperation.cpp:64: error: `SIOCGIFCONF' was not declared in this scope
networkoperation.cpp:73: error: `SIOCGIFADDR' was not declared in this scope
networkoperation.cpp:85: error: `SIOCGIFHWADDR' was not declared in this scope
networkoperation.cpp:89: error: 'struct ifreq' has no member named 'ifr_hwaddr'
gmake: *** [networkoperation.o] Error 1
是不是少了什么包没装还是怎么回事? |
|