I'm under vc++ 9.0 and I'm having problem when trying to build a simple 
*.pyd... (using distutils)
When I build the dll from the IDE it produces a DLL (not a *.pyd) and no 
compiler or linker errors.
But when I use distutils it just output a lot of errors...
I can't find the problem...

/*-----------------pydll.cpp:------------------*/
#include <boost/python.hpp> 

#include <string>

using namespace boost::python; 

__declspec(dllexport) std::string greet()

{ 

return "Hello Python"; 

}; 

BOOST_PYTHON_MODULE(hello) 

{ def("greet", greet); } 

--------------------------------------------------------------
#setup.py
from distutils.core import setup, Extension

module1 = Extension('hello',
                    sources = ["pydll.cpp"])

setup (name = 'pydll',
       version = '1.0',
       description = 'This is a demo package',
       ext_modules = [module1])
-------------------------------------------------------------

(under visual studio 2008, python 2.6, boost 1.38.0)

Thank you
Juan
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to