Changeset 4ed8634 in git


Ignore:
Timestamp:
Mar 6, 2014, 5:52:33 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
bb7308c8a9a78c69261744e168a16f5105f50b21c31461d231f9fdd0c0b673f01d45452a804692e0
Parents:
2721897afe42dc98c67601328d32a246ca89ed16
Message:
update HOWTO for libsingular
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"
     1The following is valid for Singular 4-x-x:
    32
    4 ./configure
    5 or
    6 ./configure --without-dynamic-kernel
     3./configure --disable-static ....
    74
    8 make install-libsingular
     5make install
    96
    107---------------------------------------
    118how 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
     9libsingular-config --libs: gives the correct arguments for linking
     10libsingular-config --cflags: gives the correct arguments for compiling
     11g++ ...... -o tt tt.cc ....
    2312
    2413./tt
    2514--------------------------------------
    2615the example:
    27 #include <libsingular.h>
     16#include <Singular/libsingular.h>
    2817main()
    2918{
    3019  // init path names etc.
    31   siInit((char *)"/...Singular-3-1-3/Singular/libsingular.so");
     20  siInit((char *)"/...lib/libSingular.so");
    3221
    3322  // construct the ring Z/32003[x,y,z]
Note: See TracChangeset for help on using the changeset viewer.