next up previous contents index
Next: 6.3 Intersci Up: 6.2 Interface programs Previous: 6.2.2 Example

6.2.3 addinter command

Once the interface program is written, it must be compiled to produce an object file. It is then linked to Scilab by the addinter command.

The syntax of addinter is the following:

addinter([`interface.o', 'userfiles.o'],'entrypt',['scifcts'])

Here interface.o is the object file of the interface, userfiles.o is the set of user's routines to be linked, entrypt is the entry point of the interface routine and 'scifcts' is the set of Scilab functions to be interfaced.

In the previous example addinter can be called as follows:

addinter(['Examplc.o','foubare2c.o'],'foobar','foubare');


next up previous contents index
Next: 6.3 Intersci Up: 6.2 Interface programs Previous: 6.2.2 Example
Scilab Group