Getting boost.python to work
Hallo,
I want to try and integrate python into my code, but I am having some problems with it. I decided to use boost to help me, but so far it has caused me nothing but trouble.
This works, which makes me believe that python is correctly installed
Code:
#include <iostream>
#include "Python.h"
int main()
{
return 0;
}
This does not work (from the boost.pythons help 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);
}
Here is the error:
1>LINK : fatal error LNK1104: cannot open file 'boost_python-vc90-mt-1_37.lib'
I am using Visual Studio 2008 and Vista.
Linker settings:
additional include directories: C:\Python26\include;"C:\Program Files\boost_1_37_0"
additional library directories: C:\Python26\libs;"C:\Program Files\boost_1_37_0\libs"
Apart from that it is default console project.
Any ideas?