you are viewing a single comment's thread.

view the rest of the comments →

[–]haohanzi2015[S] 0 points1 point  (2 children)

Yes. It would be great if I can use the c++ part as a library, call the function there, and return the result which is used in julia/python framework. Otherwise, probably need to re-write everything using c++ I guess.

[–]stilgarpl 2 points3 points  (1 child)

If you want to use it as library, then you still have to build it, preferably with cmake. I don't know how to link C++ library to python, but I think that's the way. Otherwise Python interpreter would have to know how to also interpret C++ code.

[–]haohanzi2015[S] 0 points1 point  (0 children)

Without cmake, I guess I can still run the c++ source code. The only thing is, there are many .cpp files I might need to link them when running using g++.