[gmx-users] How to compile C++ propgram with xdrfile library?

Semen Esilevsky yesint4 at yahoo.com
Sun May 17 13:48:49 CEST 2009

Dear All,
I'm trying to add the functionality of reading xtc to my own C++ code for a long time, so I was looking forward for libxdrfile release. Finally it is released and I tried it. I included xdrfile_xtc.h and immediately got the following error:

/usr/local/gentop/include/xdrfile/xdrfile.h|112|error: redeclaration of C++ built-in type ‘bool’|

This error is inside "#ifdef __cplusplus" block, so I presume that it should work with C++ compiler, but it does not...
I'm not proficient in C/C++ issues, so I have no idea what should I do to make it work with g++ compiler.
Any help is deeply appreciated!



More information about the gromacs.org_gmx-users mailing list