[Aldor-l] problem with smallprimefield?

Ralf Hemmecke ralf at hemmecke.de
Wed Nov 7 11:31:53 EST 2007


Try

   aldor -fx -lalgebra -laldor aaa.as

You should first give the younger libraries since they might contain 
extensions of the domains.
Unfortunately, the order of libraries on the command line matters.

Ralf

On 11/07/2007 05:02 PM, Martin Rubey wrote:
> What's wrong here?
> 
> (same with 1.1.0)
> 
> Martin
> 
> 
> 
> #include "aldor"
> #include "algebra"
> #include "aldorio"
> 
> main(): () == {
>         import from MachineInteger, SmallPrimeField 5;
>         stdout << 8::SmallPrimeField 5 << newline;
> }
> 
> main();
> 
> martin at rubey-laptop:~/aldor-test$ echo $ALDORROOT
> /home/martin/aldor/linux/1.0.3
> martin at rubey-laptop:~/aldor-test$ which aldor
> /home/martin/aldor/linux/1.0.3/bin/aldor
> martin at rubey-laptop:~/aldor-test$ aldor -fx -laldor -lalgebra smallprime.as
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_extree.o): In function
> `INIT__0_sit__extree':
> sit_extree.c:(.text+0x6f5d): undefined reference to `INIT__0_sal__sfloat'
> sit_extree.c:(.text+0x6f67): undefined reference to `INIT__0_sal__dfloat'
> sit_extree.c:(.text+0x6f6c): undefined reference to `INIT__0_sal__int'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_vector.o): In function
> `INIT__0_sit__vector':
> sit_vector.c:(.text+0x34a7): undefined reference to `INIT__0_sal__lincomb'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_token.o): In function
> `INIT__0_sit__token':
> sit_token.c:(.text+0x29a9): undefined reference to `INIT__0_sal__dfloat'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_integer.o): In function
> `INIT__0_sit__integer':
> sit_integer.c:(.text+0x5ef6): undefined reference to `INIT__0_sal__binpow'
> sit_integer.c:(.text+0x5efb): undefined reference to `INIT__0_ald__pfunc'
> sit_integer.c:(.text+0x5f0f): undefined reference to `INIT__0_sal__sfloat'
> sit_integer.c:(.text+0x5f19): undefined reference to `INIT__0_sal__int'
> sit_integer.c:(.text+0x5f32): undefined reference to `INIT__0_sal__dfloat'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_linarit.o): In function
> `INIT__0_sit__linarit':
> sit_linarit.c:(.text+0xd0b): undefined reference to `INIT__0_sal__binpow'
> sit_linarit.c:(.text+0xd15): undefined reference to `INIT__0_sal__lincomb'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_upmod.o): In function
> `INIT__0_sit__upmod':
> sit_upmod.c:(.text+0xde82): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_ring.o): In function
> `INIT__0_sit__ring':
> sit_ring.c:(.text+0xe69): undefined reference to `INIT__0_sal__binpow'
> sit_ring.c:(.text+0xe6e): undefined reference to `INIT__0_sal__int'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_field.o): In function
> `INIT__0_sit(float, int,...)(long, double)':
> sit_field.c:(.text+0xdfe): undefined reference to `INIT__0_sal__binpow'
> sit_field.c:(.text+0xe0d): undefined reference to `INIT__0_sal__int'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_charp.o): In function
> `INIT__0_sit__charp':
> sit_charp.c:(.text+0x2c8e): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_speclin.o): In function
> `INIT__0_sit__speclin':
> sit_speclin.c:(.text+0x20c2): undefined reference to `INIT__0_ald__pfunc'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_sercat.o): In function
> `INIT__0_sit__sercat':
> sit_sercat.c:(.text+0x7593): undefined reference to `INIT__0_sal__stream'
> sit_sercat.c:(.text+0x75ac): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_duts.o): In function
> `INIT__0_sit__duts':
> sit_duts.c:(.text+0x428f): undefined reference to `INIT__0_sal__stream'
> sit_duts.c:(.text+0x42a8): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(alg_sup1.o): In function
> `INIT__0_alg__sup1':
> alg_sup1.c:(.text+0xa224): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_spread.o): In function
> `INIT__0_sit__spread':
> sit_spread.c:(.text+0x5903): undefined reference to `INIT__0_sal__set'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_seqence.o): In function
> `INIT__0_sit__seqence':
> sit_seqence.c:(.text+0x854b): undefined reference to `INIT__0_sal__stream'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_upolc0.o): In function
> `INIT__0_sit__upolc0':
> sit_upolc0.c:(.text+0xf86b): undefined reference to `INIT__0_ald__pfunc'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(alg_uprcr.o): In function
> `INIT__0_alg(long double *, char, long double) __restrict':
> alg_uprcr.c:(.text+0x29c2): undefined reference to `INIT__0_sal__binpow'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_module.o): In function
> `INIT__0_sit__module':
> sit_module.c:(.text+0x930): undefined reference to `INIT__0_sal__lincomb'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_freelc.o): In function
> `INIT__0_sit(float, long double,...)(...)(long, char)':
> sit_freelc.c:(.text+0xb67): undefined reference to `INIT__0_sal__lincomb'
> /home/martin/aldor/linux/1.0.3/lib/libalgebra.a(sit_quotcat.o): In function
> `INIT__0_sit__quotcat':
> sit_quotcat.c:(.text+0x22d2): undefined reference to `INIT__0_ald__pfunc'
> collect2: ld returned 1 exit status
> #1 (Fatal Error) Linker failed.  Command was: unicl smallprime.o aldormain.o
> -L. -L/home/martin/aldor/linux/1.0.3/share/lib
> -L/home/martin/aldor/linux/1.0.3/lib -o  smallprime -laldor -lalgebra -lfoam
> #1 (Warning) Removing file `smallprime.o'.
> #2 (Warning) Removing file `aldormain.o'.





More information about the Aldor-l mailing list