I am working in an existing c++ project that builds a dll.
I am trying to call python using the C api. I can either use #include <boost/python.hpp>
or just #include <Python.h>
and my code works fine.
I have pointed the linker at the folder containing python27.lib (MyProject -> Properties -> ConfigurationProerties -> Linker -> General -> Additional Library Directories) and so I am expecting it to statically link to python.
My problem is that when I look using Dependency Walker, I see that my dll is depending on python27.dll.
This is a case where I genuinely want to static link to python.
I have done a lot of research and tried various preprocessor directives but no luck. Thank you for any help