[bigint] undefined reference to stringToBigInteger() using bigint-2009.05.03.tar.bz2

Matt McCutchen <matt at mattmccutchen.net>
Wed Apr 14 21:15:34 PDT 2010


[Sorry, I didn't see your message until now because of a problem with my
Mailman installation.]

On Tue, 2010-01-05 at 04:28 -0800, dave weirich wrote:
> I was wondering if anyone was having similar problem with trying to
> use the stringToBigInteger() function.
>  
> I have attached a sample code below, and as an attachment. 
>  
> I have included "BigIntegerLibrary.hh"; however, the compiler is
> inable to reconcile the stringToBigInteger() function.

> /////ERROR MESSAGES////////  (using codeblocks IDE)
>  
> C:\Users\Dave\Desktop\bigint-2009.05.03\primefactor.o:primefactor.cpp:(.text+0x2cc)||undefined reference to `stringToBigInteger(std::string const&)'|
> C:\Users\Dave\Desktop\bigint-2009.05.03\primefactor.o:primefactor.cpp:(.text+0x2ef)||undefined reference to `BigInteger::BigInteger(int)'|
> C:\Users\Dave\Desktop\bigint-2009.05.03\primefactor.o:primefactor.cpp:(.text+0x31b)||undefined reference to `BigInteger::BigInteger(int)'|
[...]

You need to link with the library source files.  Usually that means
adding them to the project in your IDE.

-- 
Matt




More information about the bigint mailing list