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

Mihnea Dobrescu-Balaur mihneadb at gmail.com
Tue Feb 26 12:07:34 EET 2013


On Feb 26, 2013 12:03 PM, "Daniel Baluta" <daniel.baluta at gmail.com> wrote:
>
> 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.
>

Atenție, parcă scria prin enunț că trebuie C.

Mihnea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130226/0848a9f9/attachment.html>


More information about the so mailing list