[C++-sig] Stuck on accessing numpy.ndarray in c extension

Qinfeng(Javen) Shi shiqinfeng at gmail.com
Mon Sep 25 16:59:56 CEST 2006


My boost::python exporting code is as following:

// Boost Includes
==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes
====================================================================
#include "hello.c"
// Using
=======================================================================
using namespace boost::python;
// Declarations
================================================================
// Module
======================================================================
BOOST_PYTHON_MODULE(hello)
{
    def("main", &main);
    def("testArray", &testArray);
}



-- 
Qinfeng(Javen) Shi

Research School of Information Sciences and Engineering
Australian National University
Locked Bag 8001
Canberra ACT 2601
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060926/a9e9d4f4/attachment.htm>


More information about the Cplusplus-sig mailing list