Error during make install on MacOS (Intel CPU)

Hello,

I posted my issue on the acados github, but I’m not sure if it is the right location, so that’s why I’m reposting here:

I’m currently trying to install acados on my MacBook Pro with an Intel CPU. Everything including Cmake works, but there is an error when I try to make install, as outlined in the installation instructions. The following error appears:

error: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]. void *raw_memory_ptr = malloc(memory_size);

I managed to work around the issue by inserting #include <stdlib.h> in external/qpoases/include/qpOASES_e/MessageHandling.h. However, I’m wondering why this error appears and how I can resolve it. I think it might have to do with the underlying C version, but I am not entirely sure.

Thanks for the help.

discussion continued here: Error during make install on MacOS (Intel CPU) · Issue #1111 · acados/acados · GitHub