next up previous contents index
Next: Calling XSB from C Up: High Level Foreign Predicate Previous: Declaration of high level   Contents   Index

Compiling the foreign module on Windows

Due to the complexity of creating makefiles for the different compilers under Windows, XSB doesn't attempt to compile and build DLL's for the Windows foreign modules.

Instead, the user has to create the DLL herself. The process is, roughly, as follows: first, compile the module from within XSBThis will create the XSB-specific object file, and the wrappers. The wrappers are created in a file named xsb_wrap_modulename.c.

Then, the user has to create a project, using the compiler of choice, for a dynamically-linked library. In this project, the user must include the source code of the module along with the wrapper created by XSB. In addition, this DLL should be linked against the library

XSB\config\x86-pc-windows\bin\xsb.lib
which is distributed with XSB.



Baoqiu Cui
2000-04-23