cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/05/15:36:08

Message-ID: <37089CA7.2E459787@xoommail.com>
From: Ishpeck <ishpeck AT xoommail DOT com>
Organization: Lunaticnologies
X-Mailer: Mozilla 4.01 [en] (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help with C++ library
X-Priority: 3 (Normal)
References: <370982e5 DOT 13785014 AT news DOT wanadoo DOT fr>
X-Corel-MessageType: EMail
Lines: 46
NNTP-Posting-Host: 192.41.73.1
X-Trace: news6.ispnews.com 923311206 192.41.73.1 (Mon, 05 Apr 1999 07:20:06 EDT)
NNTP-Posting-Date: Mon, 05 Apr 1999 07:20:06 EDT
Date: Mon, 05 Apr 1999 05:21:11 -0600
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Why don't you just say "int" instead of "Integer"?  I think it's alot
easier to type and it never gives me errors.

Gallicus wrote:
> 
> I use the last version of Djgpp.
> C programs works OK.
> 
> I am testing the C++ library.
> 
> To test the C++ I wrote :
> #include <iostream.h>
> int main() {
>   int a = 100, b=200;
>   cout << "Hello " << a + b << endl;
>   return 0;
> }
> It works OK.
> 
> To test the  String C++ class I wrote:
> #include <iostream>
> #include <_String.h>
> int main() {
>   String str = "Hello ";
>   String str1 = "boys!";
>   cout << str + str1 << endl;
>   return 0;
> }
> Compiling is OK. Linking aborts.
> I get : undefined reference to "String:: ...."
> 
> To test the C++ Integer class I wrote :
> #include <Integer.h>
> int main() {
>   Integer a = 100;
>   Integer b = 200;
>   cout << a + b << endl;
>   return 0;
> }
> Compiling is OK. linking aborts.
> I get undefined reference to "Integer::..."
> 
> What is the problem ?
> 
> TIA.
> Gallicus.

- Raw text -


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