ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> C++-sig
C++-sig
[C++-sig] using msvc lib in python
by other posts by this author
Aug 18 2003 3:55PM messages near this date
[C++-sig] Re: argument_error | [C++-sig] Re: using msvc lib in python
hi everybody,

i´m a newbie in extending python. i´ve got the following problem: i´ve got a
library created with visual c++ and some functions in a sample program which
use this library. everything is fine when i compile the library(altough i´m
not an expert in creating libraries) and my sample program also runs. now i
want to expose the functions from my sample program, so that i can use them
in python. therefore i´m using bjam. when i run bjam i get some errors from
the headerfiles. Some Datatypes in the library defined with "typedef" are
unknown. The "typedef" definition is inside a "ifdef" prepocessor statement.

this is my jamfile:

subproject libs/python/example/tutorial ;

SEARCH on python.jam = $(BOOST_BUILD_PATH) ;
include python.jam ;

extension piplib                    # Declare a Python extension called
hello
:   piplib.cpp                      # source
    <dll> ../../build/boost_python   # dependencies
    # flags
:   <sysinclude> E:\openpip\lib
    <library-path> E:\openpip\lib\oplib_Debug
    <find-library> oplib

Can anybody help me? Is it possible to create the pyd-file using the Visual
Studio??? i dont wanT to use the command line.

thankz,
ben





_______________________________________________
C++-sig mailing list
C++-sig@[...].org
http://mail.python.org/mailman/listinfo/c++-sig
Thread:

Mike Rovner
Mike Rovner
Mike Rovner

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved