On Oct 26, 2011, at 5:56 PM, Antonio Castellon - RAC wrote:
**** Build of configuration Debug for project SerialTest2 ****
make all Building file: ../src/SerialTest2.cpp Invoking: GCC C++ Compiler g++ -I/usr/local/include/zdb -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/SerialTest2.d" -MT"src/SerialTest2.d" -o"src/SerialTest2.o" "../src/SerialTest2.cpp" In file included from /usr/local/include/zdb/zdb.h:33, from ../src/SerialTest2.cpp:19: /usr/local/include/zdb/URL.h:55: error: conflicting declaration ‘typedef struct URL_T* URL_T’ /usr/local/include/zdb/URL.h:55: error: ‘struct URL_T’ has a previous declaration as ‘struct URL_T’ ...
Somebody has an idea that what's happen?
Yes, I suspect the reason is that the interfaces of libzdb does not use the "extern C" as in
#ifdef __cplusplus extern "C" { #endif
<libzdb header declarations>
#ifdef __cplusplus } #endif
It was omitted more as a "fashion" statement than for practical purposes.