next up previous contents index
Next: User Guide Up: Introduction Previous: How do I get   Contents   Index

How do I use libaldor in my programs?

To use libaldor, just add the line #include "aldor" in your ALDOR sources (if you were previously an axllib user, do not include "axllib" anymore). When building an executable, add the option
-laldor
to your compiler command line. Check the subsection on using GMP for the options required if you want to use the GMP package, and the subsection on debugging for the options required if you want to use the debug version of libaldor.

If you are running libaldor inside the compiler interactive loop, then type the line

#include "aldorinterp"
immediately after #include "aldor", which will import various things for interactive use and make the interpreter loop print values automatically. Note that GMPInteger and GMPFloat are not available in the interactive loop. As with any ALDOR program, do not forget the -q option in order to optimize your programs, specially if performance is an issue.

Please report any installation problem or bugs you encounter to salli@sophia.inria.fr.


next up previous contents index
Next: User Guide Up: Introduction Previous: How do I get   Contents   Index
Manuel Bronstein 2004-06-28