OK, I think I am getting there now.
I finally got the project to compile.
I created a empty win32 console project which is configured for creating .dll files
The code for the .dll file:
Code:
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
char const* greet()
{
return "hello, world";
}
BOOST_PYTHON_MODULE(hello_ext)
{
using namespace boost::python;
def("greet", greet);
}
The code for the python file
Code:
import hello_ext
print hello_ext.greet()
raw_input("Press return to close this window...")
The output from the program:
ImportError: No module named hello_ext.
The python file is in the same folder as the dll. The dll file is called hello_ext.dll
Any ideas to whats the problem now?