[bigint] [MMWS/bigint/] Undefined Reference.
Matt McCutchen <matt at mattmccutchen.net>
Wed Apr 14 21:05:45 PDT 2010
On Sat, 2010-04-10 at 13:04 +0800, alex john wrote:
> Firstly I'd like to thank you for your BigInteger libraries. I am
> using it for freelance coding. Anyway why I am mailing you now is
> because I'm getting
>
> " [Linker error] undefined reference to
> `stringToBigInteger(std::string const&)' "
>
> When compiling with mingw32 using Dev C++.
>
> I have copied the headers into the \include\c++\3.4.2 folder but it
> still gives me the error. (Before I copied it over, I could not even
> declare the variable.)
>
> My current includes are BigIntegerLibrary.hh and stream i/o.
>
> Forgive me if this is a newbie question, but I'd be grateful if you
> replied.
Yes, it is a newbie question. 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