Hello,
Building apl succeeds, but cannot build libapl with the following error:

> libapl.cc: In function ‘void release_value(APL_value, const char*)’:
> libapl.cc:131:34: error: invalid ‘const_cast’ from type ‘const APL_value’ 
> {aka ‘Value* const’} to type ‘cValue*’
> 131 | Value * v = static_cast<Value *>(const_cast<cValue *>(val));
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
> libapl.cc: In function ‘const Function* get_function_ucs(const unsigned int*, 
> const Function**, const Function**)’:
> libapl.cc:574:44: warning: comparison of integer expressions of different 
> signedness: ‘Function_PC’ and ‘std::vector<Token>::size_type’ {aka ‘long 
> unsigned int’} [-Wsign-compare]
> 574 | for (Function_PC PC = Function_PC_0; PC < tos.size(); ++PC)
> | ~~~^~~~~~~~~~~~

There are a lot more of those, on libapl.cc.

Build details:
Commit: 8b3cc77207021c472991ca476f61544da4bf96c8 (git, latest master)
OS: Devuan Excalibur
GCC: 14.2.0
Autoconf: autoconf (GNU Autoconf) 2.72

If any more details are needed, please ask.
  • Build failure ... Subhraman Sarkar
    • Re: Build... Dr . Jürgen Sauermann via Bugs and suggestions for GNU APL

Reply via email to