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



On Sat, 30 Dec 2006 23:35:22 +0200, "Roman Yakovenko"
<roman.yakovenko@xxxxxxxxx> wrote:

On 12/30/06, Osiris <nono@xxxxxxxxxxx> 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 eliminate
"unresolved reference symbol" errors. If you did not build Boost.Python
next page( http://boost.org/libs/python/doc/building.html ) contains pretty
good explanation how to do this.

That explanation I find confusing:
"To build boost_python, use Boost.Build...": Where is boost.build and
what is it ?
in my D:\boost\libs\python\build there is no boost.build...

in D:\boost there is a build-boost.jam file.... Is that it ?

I have a D:\boost\libs\python\build\bin-stage\boost_python.dll (204kB
size) and a D:\boost\libs\python\build\bin-stage\boost_build.lib (163
KB)
I made them with Visual Studio...


I made a bjam, it is in C:\

In D:\boost\libs\python\build there are a bin_stage and a
VisualStudio folder , the files
jamfile
jamfile.v2
python_v1.zip

Is it so, that I can build the boost_python.dll and lib, either with
bjam OR with VisualStudio C++ ?

Why are all those other folders there in d:\boost ? people,
regression, tools, status etc ?

What do I do with d:\boost\boost ? a lot of headers there...

what are all these folders in d:\boost\libs\ ?

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 Python 2.4.
Therefore I need a boost DLL from boost.org, and some headerfiles that
belong to the boost DLL.
(where are those boost header files )

As you see, a lot of obfuscation....
MAybe I see too many bears on the road...


http://boost.org/libs/python/doc/v2/scope.html - here you will find example how
to expose my_int variable to Python. my_int has type int, so C++ code will not
see changes to the variable that are done from Python. You will have to write
set_my_int( x ) function to achieve this.

If you are new to Boost.Python try to use Py++ - the code generator for
the library. The Py++ GUI( http://tinyurl.com/ycwvwo ) will help you
to start\learn Boost.Python.
.



Relevant Pages

  • Re: I cant get message bodies, just headers.
    ... I also wonder if I should have done a Ctrl-A and also deleted the folders. ... I wonder if I can do without the Cookies and Temp Internet Files ... > how to just download the header. ... Everything is there, headers, ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: IMAP Folders - Local Copy
    ... Would you like to mark it for download" Yes / No ... This happens on all messages whether they were received or sent and irrespective of from where they were sent or first received; ie this DSL connected computer via Outlook, my satellite connected computer via Outlook or my laptop using the MSP's HTTP/HTML interface over dialup etc. ... In Windows Live Mail the default is no local copies (not even headers). ... BTW - I gave up on trying to get Thunderbird to maintain a local copy of the IMAP folders, doing so caused TB to crash frequently. ...
    (microsoft.public.outlook)
  • Re: Outlook Express
    ... Check his headers. ... > current location of the files which comprise your Outlook Express ... > which is what was displayed when you clicked that Store Folder button. ... How can I make the old folders and mail messages ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Getting some but not all old headers
    ... OE folders while "working offline". ... > This works just fine except that the message headers that are downloaded ... Right-click on the newsgroup ... OE will only download headers/messages posted to the server ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Missing message text and no create mail
    ... If you are using WinXP/SP2, and it was not already on your computer from the factory, you will have to remove SP2 first. ... compact of all OE folders while "working offline". ... > I have just migrated my outlook express onto another PC running OE6 IE ... I can see the folders and headers but NOT the body text in the ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)