DEV Community

Discussion on: How to Use C Functions in Python

Collapse
 
mujeebishaque profile image
Mujeeb Ishaque

One more question, is it going to be the same for c++ code?

Collapse
 
erikwhiting88 profile image
Erik

I am not sure if this will work exactly the same with C++. the first difference that comes to mind is using g++ instead of cc

the ctypes library seems to be optimized for C specifically but I bet you can use c++ as well. I'm not in a place where I can test this out right now, but play around with it and let me know what you learn

Thread Thread
 
mujeebishaque profile image
Mujeeb Ishaque

Thank you so much. I will try it out and would share the results. Thanks once again, Mr. Erik.