Bug #1836
[gcc] /usr/include/c++/8.1.0/cstdlib has an invalid macro
0%
Description
In file included from ../../../source/lib/sysdep/stl.h:32,
from ../../../source/lib/precompiled.h:68,
from ../../../source/pch/scriptinterface/precompiled.h:19:
/usr/include/c++/8.1.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^~~~~~~~
compilation terminated.
History
Updated by ovruni almost 6 years ago
- Status changed from open to not-a-bug
I can not reproduce the error. Maybe you can look at this https://trac.wildfiregames.com/ticket/5157
Updated by ani almost 6 years ago
ovruni: If you cannot reproduce the error tell me how you succeeded in solving the task.
Updated by ani almost 6 years ago
The error occurs in the file "cstdlib". That file is not part of 0 AD, it is part of GCC.
Updated by ovruni almost 6 years ago
ani: You must take the time to check the link, to have details on how to fix it
Updated by ani almost 6 years ago
I know how to work around it, the link is an URL to the task I am assigned to. What you need to understand is that this is an error in GCC, not in 0 AD.
Updated by ovruni almost 6 years ago
Your task was closed in Arch because it has nothing to do with gcc https://bugs.archlinux.org/task/58859
Please read a similar problem to understand how to fix it https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823145#25