-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use of gzip #49
Comments
I can take a look but note first that you do not need Boost to open gzip'ed file. R already does it via all of As for "I can solve it this" that is indeed correct, but your package now becomes less portable as all users would have to have these libraries available "and visible". Unlikely on Windows. In short, this is the difference between using Boost as header-only (as BH) or using Boost full-fledged with linking. Some libraries and components only work in the latter way. It is up to you balance those costs and benefits. |
I didn't know about |
Yes, I told you the error. The way Boost implements this requires linking with Boost. |
Hi,
First of all thank you for this very useful package.
I would like to use it inside a package to read a gzip file.
At the end of the compilation, I get the following error message:
I believe the error come from the header file <boost/iostreams/filter/gzip.hpp> that I need. It uses the zlib.hpp file that declare the following variable:
BOOST_IOSTREAMS_DECL extern const int deflated;
My DESCRIPTION file declare BH under the LinkingTo section.
I use other functions from BH without any problem.
I can solve the problem by adding the following line to my Makevars file but I guess this is not the right way to do:
PKG_LIBS = -L/usr/lib/x86_64-linux-gnu/ -lboost_iostreams -lboost_filesystem
Wilfried
The text was updated successfully, but these errors were encountered: