[Github-comments] [geany/geany-plugins] Compilation error with PrettyPrinter (#1059)
George Katevenis
notifications at xxxxx
Tue Feb 2 10:50:58 UTC 2021
Hi,
I'm getting this error from the compilation of PrettyPrinter
```
CC pretty_printer_la-PluginEntry.lo
In file included from /usr/include/unicode/umachine.h:52,
from /usr/include/unicode/utypes.h:38,
from /usr/include/unicode/ucnv_err.h:88,
from /usr/include/unicode/ucnv.h:52,
from /usr/include/libxml2/libxml/encoding.h:31,
from /usr/include/libxml2/libxml/parser.h:810,
from PluginEntry.h:32,
from PluginEntry.c:28:
PrettyPrinter.h:55:22: error: two or more data types in declaration specifiers
55 | typedef unsigned int bool;
| ^~~~
In file included from PluginEntry.h:34,
from PluginEntry.c:28:
PrettyPrinter.h:55:1: warning: useless type name in empty declaration
55 | typedef unsigned int bool;
| ^~~~~~~
make[3]: *** [Makefile:664: pretty_printer_la-PluginEntry.lo] Error 1
```
I guess that this may be because the bool type is defined somewhere else?
Removing the typedef and including stdbool.h fixed it for me, but AFAIK it requires C99.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1059
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20210202/402caa4e/attachment.htm>
More information about the Github-comments
mailing list