Marcel Nogueira d' Eurydice
2011-01-21 22:17:42 UTC
Hi Andreas,
First of all congratulations for the interesting job!!!
I am a newbie on this C++/Python linkage and I am struggling while
trying to compile the example you give in the test folder.
It seems I've successfully compiled the sample_ext.cpp example to a
sample_ext.o object using the following command.
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC
-DBOOST_UBLAS_USE_ITERATING=1 -Isrc/cpp
-I/usr/lib/pymodules/python2.6/numpy/core/include
-I/usr/include/python2.6
-I/usr/local/lib/python2.6/dist-packages/PyUblas-0.93.1-py2.6-linux-x86_64.egg/include/
-c sample_ext.cpp -o sample_ext.o -Wno-sign-compare -lpython2.6
-lboost_python
However, I am not able to import the module as specified into sample.py
script. What is the deal after compiling the C++ code into an object. Is
there any special configuration, flag to the compiler or extension to
name it?
Or what exactly do I need to do to use it?
I didn't find any compilation instructions over the documentation, if
there is some, could you please point me the link?
Thanks a lot, in advance.
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20110121/fafea108/attachment.html>
First of all congratulations for the interesting job!!!
I am a newbie on this C++/Python linkage and I am struggling while
trying to compile the example you give in the test folder.
It seems I've successfully compiled the sample_ext.cpp example to a
sample_ext.o object using the following command.
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC
-DBOOST_UBLAS_USE_ITERATING=1 -Isrc/cpp
-I/usr/lib/pymodules/python2.6/numpy/core/include
-I/usr/include/python2.6
-I/usr/local/lib/python2.6/dist-packages/PyUblas-0.93.1-py2.6-linux-x86_64.egg/include/
-c sample_ext.cpp -o sample_ext.o -Wno-sign-compare -lpython2.6
-lboost_python
However, I am not able to import the module as specified into sample.py
script. What is the deal after compiling the C++ code into an object. Is
there any special configuration, flag to the compiler or extension to
name it?
Or what exactly do I need to do to use it?
I didn't find any compilation instructions over the documentation, if
there is some, could you please point me the link?
Thanks a lot, in advance.
Best Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pyublas/attachments/20110121/fafea108/attachment.html>