Hi,

I am implementing an Android app using my old C++ classes. Everything looks okay but I have a wierd message which is :

Invalid arguments '
Candidates are:
void * malloc(?)
'

The malloc code is written in a cpp file and <stdlib.h> is included properly but compiler does not recognize malloc :(
What should I do?

Why are you using malloc() in your C++ classes? Have you tried operator new?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.