I've created a library using C++, I want to create a Python Wrapper for this library and I am using boost.python
- The problem is that I have created .h
and .cpp
files separately and for some reason, the .so file cannot link these .cpp files.
I have therefore decided to just use the .hpp extension and include the implementation as a header file. Is this good or bad practice in terms of C++? I'm hoping to upload my project to Github so want to maximize the most optimal solution.
P.S. I think this question would more belong on programmers.stackexchange.com so if it is, could someone please migrate it.
.hpp
and.h
are the same thing. – chrisinline
where appropriate to avoid link errors (and be aware of which types of functions are automaticallyinline
in a header file) – JBentley