We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I am facing cpp build issue when using stdlib malloc (build on windows). Despite the
is provided the cpp compiler returns this error when using malloc in the code:
error: 'malloc' was not declared in this scopenote: 'malloc' is defined in header '<cstdlib>'; did you forget to '#include <cstdlib>'? 16 | #include <cstdlib> +++ |+#include <cstdlib> Reference code: