Problem solved. Don't use a variable with the same name as a typedef (fd_set)
Sorry bothering anyone.
Wim.
Hello,
I ran into a problem which on my rapsberry pi.
FD_ZERO somehow fails to compile.
On an ubuntu machine it is not a problem.
I have searched for this problem but could not find any hint.
Does anybody have any idea what the problem might be.
int main() {
fd_set master_set;
fd_set fd_set;
FD_ZERO(&master_set);
FD_ZERO(&fd_set);
}
pi@Raspie ~/omxd $ make tst
g++ -O2 -Wall -std=c++0x tst.cc -o tst
tst.cc: In function ‘int main()’:
tst.cc:12:3: error: ‘__arr’ was not declared in this scope
tst.cc:13:3: error: ‘__arr’ was not declared in this scope
make: *** [tst] Error 1