/python-c-extensions

Demos for creating and accessing C extensions for python

Primary LanguageC

python-c-extensions

Demonstrations of creating and accessing C extensions from python. Based on The Python Cookbook, Beazley 2011. See subdirectories for instructions on how to run.

Installation of gcc on Windows

To install gcc on Windows, see this tutorial for MSYS2. This should be sufficient, but you may also like to read the docs from Visual Studio for working with C/C++ on Windows.

Note that if you're on an x64 architecture, you really will need to install gcc for an x64 architecture. Many solutions online will be for x32, and they simply won't work.