Changeset 4ed8634 in git
- Timestamp:
- Mar 6, 2014, 5:52:33 PM (10 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- bb7308c8a9a78c69261744e168a16f5105f50b21c31461d231f9fdd0c0b673f01d45452a804692e0
- Parents:
- 2721897afe42dc98c67601328d32a246ca89ed16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
HOWTO-libsingular
r272189 r4ed8634 1 export CC="gcc -fpic -DPIC -DLIBSINGULAR" 2 export CXX="g++ -fpic -DPIC -DLIBSINGULAR" 1 The following is valid for Singular 4-x-x: 3 2 4 ./configure 5 or 6 ./configure --without-dynamic-kernel 3 ./configure --disable-static .... 7 4 8 make install -libsingular5 make install 9 6 10 7 --------------------------------------- 11 8 how to compile and run the the example: 12 g++ -I......include -o tt tt.cc -L..../Singular -lsingular 13 export SINGULAR="..../Singular-3-1-3/" 14 export SINGULAR_SYSTEM_TYPE="ix86Mac-darwin/lib" 15 if [ "${SINGULAR_SYSTEM_TYPE}" = "ix86Mac-darwin/lib" ]; then 16 export 17 DYLD_LIBRARY_PATH="${SINGULAR}/${SINGULAR_SYSTEM_TYPE}:${DYLD_LIBRARY_PATH}" 18 else 19 export 20 LD_LIBRARY_PATH="${SINGULAR}/${SINGULAR_SYSTEM_TYPE}:${LD_LIBRARY_PATH}" 21 fi 22 unset SINGULAR_SYSTEM_TYPE 9 libsingular-config --libs: gives the correct arguments for linking 10 libsingular-config --cflags: gives the correct arguments for compiling 11 g++ ...... -o tt tt.cc .... 23 12 24 13 ./tt 25 14 -------------------------------------- 26 15 the example: 27 #include < libsingular.h>16 #include <Singular/libsingular.h> 28 17 main() 29 18 { 30 19 // init path names etc. 31 siInit((char *)"/... Singular-3-1-3/Singular/libsingular.so");20 siInit((char *)"/...lib/libSingular.so"); 32 21 33 22 // construct the ring Z/32003[x,y,z]
Note: See TracChangeset
for help on using the changeset viewer.