Hi Gaby, Your FFI Example for scalar product compiles in 1.3 but not 1.4. Can you tell me what the difference is? I copied the C file to dot-product.c and the spad file to dot-product.spad. In 1.4 I get an error: invalid signature.
Here are the outputs, first for OpenAxiom 1.3: OpenAxiom: The Open Scientific Computation Platform Version: OpenAxiom 1.3.0 Built on Sunday August 29, 2010 at 09:39:23 ----------------------------------------------------------------------------- Issue )copyright to view copyright notices. Issue )summary for a summary of useful system commands. Issue )quit to leave OpenAxiom and return to shell. ----------------------------------------------------------------------------- (1) -> )co dot-product.spad Compiling OpenAxiom source code from file /mnt/sda7/openaxiom/sockets/dot-product.spad using Spad compiler. SPRODUCT abbreviates package ScalarProduct ------------------------------------------------------------------------ initializing NRLIB SPRODUCT for ScalarProduct compiling into NRLIB SPRODUCT Adding $ modemaps Adding System modemaps Adding String modemaps Adding Void modemaps Adding DoubleFloat modemaps Adding PrimitiveArray DoubleFloat modemaps compiling exported scalarProduct : (PrimitiveArray DoubleFloat,PrimitiveArray DoubleFloat) -> DoubleFloat Adding Integer modemaps Adding SingleInteger modemaps Adding NonNegativeInteger modemaps Time: 0.12 SEC. (time taken in buildFunctor: 1) ;;; *** |ScalarProduct| REDEFINED ;;; *** |ScalarProduct| REDEFINED Time: 0.002 SEC. Cumulative Statistics for Constructor ScalarProduct Time: 0.13 seconds finalizing NRLIB SPRODUCT Processing ScalarProduct for Browser database: --->-->ScalarProduct((scalarProduct (DF DFARY DFARY))): Not documented!!!! --->-->ScalarProduct(constructor): Not documented!!!! --->-->ScalarProduct: Missing Description ; compiling file "/mnt/sda7/openaxiom/sockets/SPRODUCT.NRLIB/code.lsp" (written 29 AUG 2010 11:27:51 AM): ; compiling (/VERSIONCHECK 2) ; compiling (DEFUN |SPRODUCT;dotProduct| ...) ; compiling (DEFUN |SPRODUCT;scalarProduct;2PaDf;1| ...) ; compiling (DEFUN |ScalarProduct| ...) ; compiling (DEFUN |ScalarProduct;| ...) ; compiling (MAKEPROP (QUOTE |ScalarProduct|) ...) ; compiling (MAKEPROP (QUOTE |ScalarProduct|) ...) ; /mnt/sda7/openaxiom/sockets/SPRODUCT.NRLIB/code.fasl written ; compilation finished in 0:00:00.046 ------------------------------------------------------------------------ ScalarProduct is now explicitly exposed in frame frame779 ScalarProduct will be automatically loaded when needed from /mnt/sda7/openaxiom/sockets/SPRODUCT.NRLIB/code.fasl However for OpenAxiom 1.4 I get this: OpenAxiom: The Open Scientific Computation Platform Version: OpenAxiom 1.4.0-2010-05-10 Built on Sunday August 29, 2010 at 00:32:32 ----------------------------------------------------------------------------- Issue )copyright to view copyright notices. Issue )summary for a summary of useful system commands. Issue )quit to leave OpenAxiom and return to shell. ----------------------------------------------------------------------------- (1) -> )compile dot-product.spad Compiling OpenAxiom source code from file /mnt/sda7/openaxiom/sockets/dot-product.spad using Spad compiler. SPRODUCT abbreviates package ScalarProduct ------------------------------------------------------------------------ initializing NRLIB SPRODUCT for ScalarProduct compiling into NRLIB SPRODUCT Adding $ modemaps Adding System modemaps Adding String modemaps Adding Void modemaps error: invalid signature Adding DoubleFloat modemaps Adding PrimitiveArray DoubleFloat modemaps compiling exported scalarProduct : (PrimitiveArray DoubleFloat,PrimitiveArray DoubleFloat) -> DoubleFloat Adding Integer modemaps Adding SingleInteger modemaps Adding NonNegativeInteger modemaps Time: 0.12 SEC. (time taken in buildFunctor: 0) ;;; *** |ScalarProduct| REDEFINED ;;; *** |ScalarProduct| REDEFINED Time: 0.001 SEC. Cumulative Statistics for Constructor ScalarProduct Time: 0.13 seconds Errors in processing domain SPRODUCT : not replacing NRLIB for SPRODUCT (1) -> ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ open-axiom-devel mailing list open-axiom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open-axiom-devel