From: Gallicus AT caramail DOT com (Gallicus) Newsgroups: comp.os.msdos.djgpp Subject: Re: Help with C++ library Date: Mon, 05 Apr 1999 15:12:19 GMT Organization: Wanadoo - (Client of French Internet Provider) Lines: 29 Message-ID: <370cd263.34137764@news.wanadoo.fr> References: <370982e5 DOT 13785014 AT news DOT wanadoo DOT fr> NNTP-Posting-Host: b-adsl-nice-1-166.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent 1.5/32.452 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 05 Apr 1999 09:34:19 GMT, Gallicus AT caramail DOT com (Gallicus) wrote: >I use the last version of Djgpp. >C programs works OK. >I am testing the C++ library. >To test the C++ Integer class I wrote : >#include >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 ? This program is working now. Compute of 2 ^200 gave : 1606938044258990275541962092341162602522202993782792835301376 Cause of the problem : Linker in RHIDE didn't find the C++ lib (libgpp.a) although that lib is where all libs are (Djgpp\lib). It had to get the info from me. Gallicus.