Hi I\'m trying to embed python (2.7) into C++ (g++ 4.8.2) and hence call a python function from C++. This is the basic code provided in python documentation for embedding:
Hi to all those facing the same problem, I found the solution!
setenv() is a function defined in stdlib.h which sets the environment variable. Just have to run it!