On Aug 25, 1:45 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
> Hi,

Hi,

> I try to compile sage on my opteron machine.
>
> When compiling flint, I get the ld error message:
> /usr/bin/ld: cannot find -lstdc++
>
> Th "ld" lines are:
>
> g++  -I/usr/local/sage-3.1/local/include/
> -I/usr/local/sage-3.1/local/include -f PIC -funroll-loops  -O3 -c
> NTL-interface.cpp -o NTL-interface.o
> gcc -std=c99 -fPIC -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat
> DIRNAME`.s o mpn_extras.o mpz_extras.o memory-manager.o ZmodF.o
> ZmodF_mul.o ZmodF_mul-tunin g.o fmpz.o fmpz_poly.o mpz_poly-tuning.o
> mpz_poly.o ZmodF_poly.o long_extras.o z mod_poly.o NTL-interface.o
> -L/usr/local/sage-3.1/local/lib/ -L/usr/local/sage-3.1/local/lib/  -lgmp
> -lpthread -lntl -lm -lstdc++
>
> and so, we certainly try to find a libstdc++ in
> /usr/local/sage-3.1/local/lib/
> and, actually, there is non stl lib installed there.
> The stl lib is system wide installed....

Odd to say the least and I am not sure why we even need to link libstdc
++ explicitly here. I assume your C++ compiler works since at that
point we have already build NTL. libstdc++.so should be automatically
picked up the compiler. To fix this I would remove that linker
directive from FLINT.

Does Lenny ship with gcc 4.3.1 or did you compile the compiler itself?

> yours
> t.

Cheers,

Michael

>  tdumont.vcf
> < 1KViewDownload
>
>  smime.p7s
> 5KViewDownload
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to