User forums > Using Code::Blocks

Debug a DLL with Python

<< < (3/3)

simbalsyd:
Hi

I checked and it is built with Microsoft Visual C++.

/Anders

oBFusCATed:
So, most probably you have to build your extension with Visual C++ and the versions must match.
Another option is to use python built by gcc/mingw.
Mixing compilers rarely work correctly.

renega_666:

--- Quote ---Insert Quote
So, most probably you have to build your extension with Visual C++ and the versions must match.
Another option is to use python built by gcc/mingw.
Mixing compilers rarely work correctly.
--- End quote ---

I have a project where I always build python extensions with mingw and codeblocks. I can debug and use them on a regular python installation (compiled with visual studio) without any problems. So the problem might actually be somewhere else.

I remember I had some problems to debug python extensions a while ago with an old nightly build ( before the debug branch merge ) but with a recent nightly it definitely works. Never tested with 10.05.

Here is my setup:
- IDE: Codeblocks r8248
- Compiler: TDM-GCC 4.6.1
- Python version: 2.7.3 compiled with VC9
- Windows XP SP3 & Windows 7 SP1

Navigation

[0] Message Index

[*] Previous page

Go to full version