Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

Timeline for Calling C/C++ from Python?

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jan 26, 2022 at 6:24 comment added Jdeep For whoever having the problem <Python.h> not found , you need to do gcc $(pkg-config --cflags python3) -fPIC -c example.c example_wrap.c -I/usr/local/include/python3.10 .
S Dec 14, 2015 at 17:39 history suggested mmohaveri CC BY-SA 3.0
the building code was not working (it did not have -fPIC flag) so I updated it based on swig man page.
Dec 14, 2015 at 15:59 review Suggested edits
S Dec 14, 2015 at 17:39
Apr 22, 2015 at 7:48 history edited Palec CC BY-SA 3.0
Improved formatting
S Apr 21, 2015 at 21:14 history suggested Yaroslav Nikitenko CC BY-SA 3.0
added an example of Swig usage, as suggested in the comment. This improves the answer and follows the edit guidelines.
Apr 21, 2015 at 20:17 review Suggested edits
S Apr 21, 2015 at 21:14
Apr 21, 2015 at 5:59 review Low quality answers
Apr 21, 2015 at 6:45
Sep 28, 2008 at 5:44 history answered Ben Hoffstein CC BY-SA 2.5