Phyton Trying to understand linking procedure for writing Python/C++ hybrid

First, do you compile C or C++ code?

Use gcc for the former, and g++ for the latter. C++ code needs some additional linking to be performed.

Second: you have to link your program to libpython2.7.so to embed the interpreter into it. To do this, add -lpython2.7 to gcc command line.

Answer:1



I am writing a Python application that queries social media APIs via cURL. Most of the different servers I query (Google+, Reddit, Twitter, Facebook, others) have cURL complaining: additional stuff ...

I am writing a Python application that queries social media APIs via cURL. Most of the different servers I query (Google+, Reddit, Twitter, Facebook, others) have cURL complaining: additional stuff ...