Message-ID: <000401bdd306$038738e0$07a531ce@i6p9b2> From: "Jorge Ivan Meza Martinez" To: Cc: Subject: RE: Undefined reference... Date: Fri, 28 Aug 1998 21:58:54 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Precedence: bulk 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 >>#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 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 Grupos de noticias: comp.os.msdos.djgpp Para: djgpp AT delorie DOT com Fecha: Viernes, 28 de Agosto de 1998 10:25 a.m. Asunto: Re: Undefined reference...