delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/28/22:15:36

From: nospam AT 127 DOT 0 DOT 0 DOT 1 (Xenon)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Undefined reference...
Date: Sat, 29 Aug 1998 00:55:57 GMT
Organization: PIRONET News-System
Lines: 26
Message-ID: <35e9380e.7798056@news.piro.net>
References: <35e828da DOT 3904793 AT news DOT piro DOT net>
Reply-To: nonex AT hotmail DOT com
NNTP-Posting-Host: news.piro.net
Mime-Version: 1.0
NNTP-Posting-Date: 29 Aug 1998 00:56:25 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 28 Aug 1998 22:05:16 GMT, nospam AT 127 DOT 0 DOT 0 DOT 1 (Xenon) wrote:

>
>#include <stdio.h>
>#include <_String.h>
>
>void main(void) {
>  String test(" Teststring ");
>  printf("|%s|\n",test);
>}
>

This thing compiled fine when I used
gxx new.cc -O2 -lgpp - at least
the undefined references were gone.
Now I'm facing another problem:

new.cc:8: warning: cannot pass objects of type `String' through `...'

Any Ideas on that one ? 

Xenon

PS: What's the difference in including <_String.h> and <strclass.h> ?


- Raw text -


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