When compile using g++, following error messages appears.
/usr/include/sys/sysinfo.h:101: `struct sysinfo_t sysinfo' redeclared
as differe
nt kind of symbol
/usr/include/sys/systeminfo.h:77: previous declaration of `int
sysinfo(int, char
*, long int)'
....
szh.cpp:899: no match for call to `(sysinfo_t) (int, char[256], long
int)'
make: *** [szh.o] Error 1
It seems that g++ could not distinguish sysinfo(2) system call from
sysinfo structure variable.
How can I solve this provblem...? Hope advice.
Chun-Mok Chung.