Hello,
I am trying to install GLE (I tried many versions: 4.2.x) on Ubuntu 20.04 but it does not seem to work.
I could not find a .deb file that works so I tried to compile it manually, with g++ 9.3. Unfortunately, the compilation crashes.
1) There is a problem with the flags $(PATH_SEP). I have to delete them in several "files.txt" in order for the makefiles to proceed.
2) More importantly, the compilation crashes with the error message:
g++ -DHAVE_CONFIG_H -DGLEVN="\"4.2.5\"" -Wno-write-strings -c ffitcontour.cpp -o ffitcontour.o
In file included from ffitcontour.cpp:51:
/usr/include/stdlib.h:840:12: error: expected unqualified-id before ‘int’
840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
/usr/include/stdlib.h:840:12: error: expected ‘)’ before ‘int’
f2c.h:184:17: note: to match this ‘(’
184 | #define abs(x) ((x) >= 0 ? (x) : -(x))
| ^
/usr/include/stdlib.h:840:12: error: expected ‘)’ before ‘int’
840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
f2c.h:184:16: note: to match this ‘(’
184 | #define abs(x) ((x) >= 0 ? (x) : -(x))
| ^
In file included from /usr/include/c++/9/cmath:47,
from /usr/include/c++/9/math.h:36,
from ffitcontour.cpp:53:
/usr/include/c++/9/bits/std_abs.h:52:11: error: ‘::abs’ has not been declared
52 | using ::abs;
| ^~~
I hope it will be helpful.
I stumbled upon the same error. The problem is that file "src/gle/surface/ffitcontour.cpp" includes the files in the wrong order. Just make sure that the sequence of #includes near line #46 is always
(this order is used only under OS/2 and EMX: I wonder why?) and everything should compile fine.