Compile problem
Décio Luiz Gazzoni Filho
decio at decpp.net
Mon Aug 16 16:36:00 CEST 2010
On Aug 15, 2010, at 8:06 PM, Skeoch, Ronald Leaton wrote:
> Hello,
>
>
>
> I have been using the GMP library for about two weeks now... I have run into
> a build problem that I have not been able to correct. I believe that I have
> the library installed correctly but I am feeling that if it everything was
> where it should be then I wouldn't be having a build problem, so I am
> looking for some help.
>
>
>
> Environment:
>
> I am using:
>
> - Ubuntu 10.04 as O/S (VM guest)
>
> - Geany 0.19 as my IDE
>
> o (g++ --version) g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
>
>
>
> Geany has the following set in the build commands:
>
> Compile: g++ -Wall -c "%f" -lgmp -lgmpxx
>
> Build: g++ -Wall -o "%e" "%f" -lgmp -lgmpxx
>
I believe you need to reverse the library declarations: -lgmpxx -lgmp.
If the problem persists, you'll need help from someone else, I have no idea what else it could be.
Décio
More information about the gmp-discuss
mailing list