From: nonsemantic AT aol DOT com (Andrew) Newsgroups: comp.os.msdos.djgpp Subject: Re: error while linking using GMP library Date: 26 Jun 2002 10:18:28 -0700 Organization: http://groups.google.com/ Lines: 48 Message-ID: References: <3D18C245 DOT 39312534 AT phekda DOT freeserve DOT co DOT uk> NNTP-Posting-Host: 206.17.226.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1025111908 13845 127.0.0.1 (26 Jun 2002 17:18:28 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 26 Jun 2002 17:18:28 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com O.k., I tried both of those commandline options, and got the following errors: ---- C:\test>gpp bignum.cpp -o bignum.exe -lstdcxx -lm -lgmp ---- --- c:/djgpp/tmp\ccfNYMfa.o(.gnu.linkonce.t._ZlsRSoRK10__gmp_exprI12__gmpz_valueS1_E +0x1c):bignum.cpp: undefined reference to `operator<<(std::ostream&, __mpz_struc t const*)' collect2: ld returned 1 exit status --- and: --- C:\test>gpp bignum.cpp -o bignum.exe -lgmp -lgmpxx --- --- c:/djgpp/lib/libgmpxx.a(osmpz.o): In function `operator<<(std::ostream&, __mpz_s truct const*)': osmpz.o:37: undefined reference to `__gmpz_get_str' c:/djgpp/lib/libgmpxx.a(osfuns.o)(.text+0x4): undefined reference to `__gmp_aspr intf_memory' c:/djgpp/lib/libgmpxx.a(osfuns.o)(.text+0x8): undefined reference to `__gmp_aspr intf_reps' c:/djgpp/lib/libgmpxx.a(osdoprnti.o): In function `__gmp_doprnt_integer_ostream( std::ostream&, doprnt_params_t*, char*)': osdoprnti.o:54: undefined reference to `__gmp_doprnt_integer' osdoprnti.o:56: undefined reference to `__gmp_asprintf_final' collect2: ld returned 1 exit status --- I'm thinking I'll try installing djgpp and GMP again, just to make sure everything compiled correctly the first time. I'm running windows 2000, btw, tho I doubt that has much to do with the issue. Thanks for your help! -Andrew-