-
Notifications
You must be signed in to change notification settings - Fork 65
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
Cannot compile due to narrowing conversion #34
Comments
Thanks, @wouterbeek. I'll take a look in a bit. |
@wouterbeek Any idea what's special about your version? I tried compiling with various gcc versions, and it worked: https://travis-ci.org/rdfhdt/hdt-cpp/jobs/190402735 |
@wouterbeek Does 4f6ecce solve your problem? |
@RubenVerborgh Removing the 'if-then-else' indeed fixes the issue for me! In fact, if I just remove the 'else' part on branch I do not understand how I can end up in the 'else' part all of the time, because the 'if' conditions seems to be set directly before the 'if-then-else' statement? PS: In commit c82d90d you have added a flag that is not recognized on my system (Ubuntu 16.10, GCC 6.2.0):
|
It was actually the addition of The I'll merge this to master then. I think we should change names from |
After a new git clone, on master branch, and make from within hdt-lib, I'm still getting (on Ubuntu 16.10):
|
And you're not, @wouterbeek? |
Just to be sure.. is the make touching anything outside of the cloned location that should be wiped off before a new make? |
Not the cloned location, but it is touching files outside of |
@csarven is right: removing the As a quick fix you can make the two substitutions that I mention in my top post. That fixes compilation for me on the following three machines/configurations: Fedora 24 GCC 6.1.1, Ubuntu 16.04 GCC 5.4.0, Ubuntu 16.10 GCC 6.2.0. BTW I also have to add |
Aha, I'm able to reproduce your bug: https://travis-ci.org/rdfhdt/hdt-cpp/jobs/190684926. Will indeed apply the above fix. |
|
Ah, but SERD is a prerequisite. # Download and install SERD
curl -s http://download.drobilla.net/serd-0.24.0.tar.bz2 | tar -xj
pushd serd-* && ./waf configure && ./waf && sudo ./waf install && popd
# Download and install Raptor
curl -s http://download.librdf.org/source/raptor2-2.0.15.tar.gz | tar -xz
pushd raptor2-* && ./configure && make -j2 && sudo make install && popd |
The project README says that Serd is optional. |
@RubenVerborgh Thanks for the info. Good choice to go with Serd! |
Compiling
hdt-lib
using GCC 6.1.1 gives me the following warnings:In order to compile the library I have to make the following change in two files. From:
To:
Since my C++ skills are non-existent, a capable programmer may fix this in a less hacky way :-P
The text was updated successfully, but these errors were encountered: