Closed mk270 closed 7 years ago
The error message seems accurate to me: '__typeof' is invalid in C99
Try compiling with a compiler that supports __typeof
(GCC, Clang, etc), or adjusting your macro definitions until uthash decides to use a different way of computing the decltype of an expression. If all else fails, use -DNO_DECLTYPE
(or the equivalent command-line option for your compiler).
No, I know about the warning; that can be worked around as you suggest. The error, however,
$ utc.c:19: error: called object type 'int' is neither a function nor function pointer
seems a tougher nut to crack. I have dumped the preprocessor output and can't see where this "int" comes from.
https://www.sjbaker.org/wiki/index.php?title=A_Short_Guide_to_understanding_C%2B%2B_compiler_errors
Fix the __typeof
error, and the other one will disappear like magic!
I get a compile error compiling a minimal test programme:
Where
utc.c
is: