Mail Archives: djgpp/2002/06/26/13:30:19
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-
- Raw text -