upgrade to ubuntu 12.04 breaks compiling

Marc Glisse marc.glisse at inria.fr
Mon Sep 10 20:08:56 CEST 2012


On Mon, 10 Sep 2012, A. Grigoryants wrote:

> Well, your Crystal ball is wrong this time :-)  I saw the case when it was 
> true :-) ... And you are true about "shouldn't have worked before" :-)
>
> this is compilation string and compiler reply:
> g++ -w -I.. -I. -o prog/fund_sys_chk.run  prog/fund_sys_chk.cpp -L. -L.. 
> -lgmp -lgmpxx -lmy

Wrong order. If libA depends on libB, you want -lB _after_ -lA.

-- 
Marc Glisse


More information about the gmp-discuss mailing list