Re: [C++-sig] issues with loading the boost_python dll on different computers

2012-08-24 Thread Ronny Herzog

Thanks Trigve,

I used depends.exe and found out that it was looking for the debug 
version of the msvc runtime library. Compiling my extension in 'release' 
mode - everything worked. :-)


Ronny

Am 8/23/2012 6:50 PM, schrieb Trigve Siver:

From: Ronny Herzog 
To: cplusplus-sig@python.org
Cc:
Sent: Thursday, August 23, 2012 4:53 PM
Subject: [C++-sig] issues with loading the boost_python dll on different 
computers

Dear all,

I installed and used boost (1.50.0) to build a python extension on my Windows 7
/ 32 Bit. Everything worked fine.

Now I tried the extension module on other Computers with Windows 7 and Windows
XP and the same Python version and it gave me an error concerning the DLL:

** ImportError : DLL load failed: This application has failed to start
because the application configuration is incorrect. Reinstalling the
application may fix this problem. **

Would anyone have a hint on were this problem could come from. I am totally
clueless.


Hi, two possible reason from top of my mind:

* Is it possible that you are using debug version of your extension?
* If you are using VS, have you installed VC redist of *your's VS version* on 
target PC?

Also try depends.exe to find if you aren't missing any dependencies.


Thanks a lot,
Ronny


Trigve




___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


[C++-sig] building 32 Bit and 64 Bit extensions on the same machine

2012-08-24 Thread Ronny Herzog

Dear all,

I want to build 32 bit extensions and 64 bit extensions on my Windows 7 
/ 32 Bit with boost. After two days of checking google I am a bit 
frustrated. I am new to Boost and it is a bit like a jungle.


Can anyone help on what I need to do to set up Boost in the right way 
and have a Jamroot which allows me to compile my Python extensions in 32 
Bit and 64 Bit at the same time (with MSVC 2008).


Thanks a lot,
Ronny

___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig


Re: [C++-sig] building 32 Bit and 64 Bit extensions on the same machine

2012-08-24 Thread Wojciech Mamrak
Hi,

add address-model=64 to Boost::Python bjam compilation command and
that's all. Be aware, that not all MSVS versions (e.g. Express
Edition) are equipped with 64 Bit compiler.

2012/8/24 Ronny Herzog :
> Dear all,
>
> I want to build 32 bit extensions and 64 bit extensions on my Windows 7 / 32
> Bit with boost. After two days of checking google I am a bit frustrated. I
> am new to Boost and it is a bit like a jungle.
>
> Can anyone help on what I need to do to set up Boost in the right way and
> have a Jamroot which allows me to compile my Python extensions in 32 Bit and
> 64 Bit at the same time (with MSVC 2008).
>
> Thanks a lot,
> Ronny
>
> ___
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
___
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig