Re: Powerloom API
Rera <[email protected]> Tue, 11 Dec 2007 14:38:26 -0800 (PST)
| Newsgroups | gmane.comp.ai.powerloom |
|---|---|
| Message-ID | <[email protected]> |
Hans Chalupsky wrote: > > Andrea, > > to be able to call PowerLoom and STELLA functions in your code, > include the file powerloom-system.hh which will include all other > necessary files (the file lives in powerloom/native/cpp/powerloom/). > Use -Ipowerloom/native/cpp in your C++ compilation (adjust the path to > your installation directory) so that it will find all the include files. > > Then there are two ways to interface your C++ code with PowerLoom: > > (1) Have PowerLoom be the main application shell and add your own > extensions to it. To do that you'd have to edit main.c in > powerloom/native/cpp/powerloom/ to include/call your code and edit the > Makefile in the same directory to link with your extension > files/libraries. > > (2) Treat PowerLoom as a library and link it with your C++ > application. To do that first build the C++ version of PowerLoom (see > the manual - basically type `make' in the > powerloom/native/cpp/powerloom directory) which will build the various > PowerLoom libraries such as stella.so, logic.so, etc. Then link your > C++ application with the libraries built (look at the final link step > when `make'ing PowerLoom which will show you which of these libraries > you'll need to link with your application; use the switch > -Lpowerloom/native/cpp/lib to tell the compiler where all the > libraries live). > > Hope that does the trick. All of this assumes a Unix-based > environment such as Linux or MinGW/Cygwin under Windows. > > Hans > > Thanks very much. You have been really useful to me. I had already seen that powerloom-system.hh includes other files including other files etc. Now I'm trying to understand which functions correspond to basic PowerLom commands like defconcept, defrelation etc. I think they're all in logic-inn.hh, aren't they? -- View this message in context: http://www.nabble.com/Powerloom-API-tp13489585p14285043.html Sent from the PowerLoom mailing list archive at Nabble.com.