[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.1 Making the Extension

If you have an extension called example.c, compile it with the following commands:

 
# g++ -shared -c example.c -o example.o
# ld -shared example.o -o example.so

You can put the above commands into a make file (Makefile), and then type "# make clean ; make example.so":

 
example.so:

	g++ -shared -c example.c -o example.o
	ld -shared example.o -o example.so
	
clean:

	rm -f example.so

Copy example.so to the /apps directory on your Cogsys workstation.

Then, to use the extension, put the line

 
%X[example.cxr]

in your testlist file.



This document was generated on November, 24 2008 using texi2html