Project

General

Profile

Bug #325

xdrfile library can not be compiled with C++ compiler

Added by Semen Yesylevskyy over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

When compiling C++ code with included xdrfile_xtc.h (using g++) the following error is emitted:

/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...

History

#1 Updated by David van der Spoel over 10 years ago

This has been fixed in the CVS version by renaming "bool" to "mybool", and it is in the soon to be released 1.1 version. Thanks for reporting.

Also available in: Atom PDF