Hi, I am not an expert in boost, though I have used ublas extensively. Recently, my supervisor asked me to build boost regex for the gcc platform. My question is:
Why can't I use the regex as it is, like ublas?
Please give detailed answer.
Hi, I am not an expert in boost, though I have used ublas extensively. Recently, my supervisor asked me to build boost regex for the gcc platform. My question is:
Why can't I use the regex as it is, like ublas?
Please give detailed answer.
I'm assuming that by "can't use the regex as it is" you mean "without having to build it seperately".
Short answer: uBLAS is "header-only" (http://www.boost.org/doc/libs?view=filtered_header-only), and Regex is not.
A "header-only" library's implementation entirely resides in header (.hpp) files. To use it, one only has to #include these headers.
A "non-header-only" ("normal"?) library has headers declaring the library's interface, but the implementation is in .cpp files, which are built seperately and then linked into the final executable. In Boost, the .cpp files are normally in boost/libs/<library-name>/src.
Similar if not duplicate: Including Relevant Boost Libraries with C++ Source (Using Visual Studio)