Mail Archives: djgpp/1998/08/28/23:30:31
Hi,
>new.cc:8: warning: cannot pass objects of type `String' through `...'
you can not pass String objects when your code expects a char*,
try "String.chars ()".
your code should be ....
>>#include <stdio.h>
>>#include <_String.h>
>>
>>void main(void) {
>> String test(" Teststring ");
>> printf("|%s|\n",test.chars() );
>>}
>PS: What's the difference in including <_String.h> and <strclass.h> ?
strclass.h has a typedef from String to string and includes <_String>.
>gxx new.cc -O2 -lgpp - at least
Bye,
jorge ivan meza martinez
jimeza AT usa DOT net
jimezam AT arenas DOT armenia DOT multi DOT net DOT co
jimeza.home.ml.org
-----Mensaje original-----
De: Xenon <nospam AT 127 DOT 0 DOT 0 DOT 1>
Grupos de noticias: comp.os.msdos.djgpp
Para: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Fecha: Viernes, 28 de Agosto de 1998 10:25 a.m.
Asunto: Re: Undefined reference...
- Raw text -