I want to call a compiled C++ executable from another script and also need the value returned by the executable. Using system()
doesn't return the function output and am not able to find any other alternative. Is this possible without having to write to a file and parsing from it?
I am working with 2 different libraries and want to use one of the libraries from another. So, I thought of doing it by creating the executable and calling it from the script of the other library. I also tried to compile both together by adding the header file directories of the other library during make but get this error ImportError: /.conda/envs/myenv/lib/python3.6/site-packages/hnswlib.cpython-36m-x86_64-linux-gnu.so: undefined symbol: gzopen64
which I am not able to understand how to fix.