Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Roman Yakovenko
On 12/31/06, Osiris <[EMAIL PROTECTED]> wrote: > In short: it's all rather confusing > > I think it must be like this: > > To use my C/C++ code with Python, add some stuff in the C/C++ source > and compile it into a DLL, that must be combined with some boost-DLL > to make it accessible to Pytho

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Osiris
On Sat, 30 Dec 2006 23:35:22 +0200, "Roman Yakovenko" <[EMAIL PROTECTED]> wrote: >On 12/30/06, Osiris <[EMAIL PROTECTED]> wrote: >> Visual C++ build log at: >> >> http://213.10.133.192/BuildLog.htm > >It is better to ask Boost.Python related questions on it mailing list: >http://mail.python.org/ma

Re: python , Boost and straight (but complex) C code

2006-12-31 Thread Osiris
On Sun, 31 Dec 2006 01:01:29 +0100, Christophe Cavalaria <[EMAIL PROTECTED]> wrote: >Osiris wrote: > >> On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> >> wrote: >> >>>Osiris wrote: >>> I have these pieces of C-code (NOT C++ !!) I want to call from Python. I fou

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Christophe Cavalaria
Osiris wrote: > On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> > wrote: > >>Osiris wrote: >> >>> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >>> I found Boost. >>> I have MS Visual Studio 2005 with C++. >>> >>> is this the idea: >>> I write th

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > yes, but C can be compiled with a C++ compiler, One can put C code in > C++ source Boost should not complain... should it ? > Boost text is all about C++.. so... C should not be a problem... That you're dealing with a `boost` namespace below clearly indicates that you're dea

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
On Sat, 30 Dec 2006 13:19:28 -0800, Erik Max Francis <[EMAIL PROTECTED]> wrote: >Osiris wrote: > >> I have these pieces of C-code (NOT C++ !!) I want to call from Python. >> I found Boost. >> I have MS Visual Studio 2005 with C++. >> >> is this the idea: >> I write the following C source file: >>

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Roman Yakovenko
On 12/30/06, Osiris <[EMAIL PROTECTED]> wrote: > Visual C++ build log at: > > http://213.10.133.192/BuildLog.htm It is better to ask Boost.Python related questions on it mailing list: http://mail.python.org/mailman/listinfo/c++-sig/ You should add to the link line boost_python.lib, thus you will

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Erik Max Francis
Osiris wrote: > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #include > #include > > namespace { // Avoid cluttering

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
Visual C++ build log at: http://213.10.133.192/BuildLog.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Sebastian 'lunar' Wiesner
Osiris <[EMAIL PROTECTED]> typed > I have these pieces of C-code (NOT C++ !!) I want to call from Python. > I found Boost. > I have MS Visual Studio 2005 with C++. > > is this the idea: > I write the following C source file: > > #include iostream is a C++ header fil

Re: python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I get, from Visual C++, these linker errors, 8 in total, trying to build the above C++ source: C_test.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl boost::python::detail::init_module(char const *,void (__cdecl*)(void))" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[E

python , Boost and straight (but complex) C code

2006-12-30 Thread Osiris
I have these pieces of C-code (NOT C++ !!) I want to call from Python. I found Boost. I have MS Visual Studio 2005 with C++. is this the idea: I write the following C source file: #include #include namespace { // Avoid cluttering the global namespace. int my_int;