delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/23:30:31

Message-ID: <000401bdd306$038738e0$07a531ce@i6p9b2>
From: "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
To: <nonex AT hotmail DOT com>
Cc: <djgpp AT delorie DOT com>
Subject: RE: Undefined reference...
Date: Fri, 28 Aug 1998 21:58:54 -0600
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019