Discussion:
[ast-developers] small error in compilation redefined #define
David A.D. Morano, PE, PhD
2015-04-23 13:57:17 UTC
Permalink
Hello,

Trying to compile AST-OPEN 2014-12-24.

The file:
lib/libast/string/strexpr.c

has a #define like (at or near line 47):

#define error(ex,msg) return(seterror(ex,msg))

this define ("error") is already defined in:

lib/libast/astsa/error.h

as:

#define error _err_msg

I temporarily tried to fix this by changing the definition in:

lib/libast/string/strexpr.c

to:

#undef error
#define error(ex,msg) return(seterror(ex,msg))

This bug appears to only cause a compilation warning (using GCC)
but it would still be good to eleiminate this error since there are
already enough other (and possibly more serious) compilation
warnings throughout the AST package.

Thanks for any attention.

----

David A. Morano, PE, PhD
***@computer.org

Loading...