That isn't an error in C or C++ -- the first chans is a field of a struct, the second is a local variable. What compiler are you using? If possible, send me your makefile and config.h so I have some context to work with.