[so] [Tema 0][Linux]vmchecker format output

Daniel Baluta daniel.baluta at gmail.com
Tue Feb 26 12:03:04 EET 2013


On Tue, Feb 26, 2013 at 11:37 AM, Laura Vasilescu
<vasilescu.laura at gmail.com> wrote:
> On Tue, Feb 26, 2013 at 11:34 AM, Mihail Dunaev <ddryhten at gmail.com> wrote:
>> Salut, primesc eroarea asta :
>>
>> error C2440: 'initializing' : cannot convert from 'void *' to 'char*'
>> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
>>
>> Asta pentru : char* string = malloc (size);
>
> Sursa ta este C sau C++?

Sigur e C++. Va trebui sa faci un cast explicit al pointerului întors de malloc.

thanks,
Daniel.


More information about the so mailing list