Embedding
Starting with Pike 7.7, basic embedding support is available. To create a shared pike library, you can use the command "make lib" in the Pike distribution directory. This should yield a file, "pike.so" (odd name, yes) that when renamed to "libpike.so", is linkable into your own applications. You can then call pike C-level functions, such as initializing the interpreter and so forth. Not that currently, the pike interpreter embedded in your application is a singleton; there is currently no support for multiple concurrent interpreters within a single process.For users willing to go the Objective C route, Pike 7.7 contains a simple Objective-C class that makes it easy to add an embedded Pike interpreter. For details, see PikeFrameworkA basic example of embedding Pike is located here:http://hww3.riverweb.com/dist/pike_embedding/ Powered by PikeWiki2 |
|||
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University |