Skip to content
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

compilation error: SimpleGraph.cpp:650:28 #116

Closed
cliu6688 opened this issue May 31, 2016 · 2 comments
Closed

compilation error: SimpleGraph.cpp:650:28 #116

cliu6688 opened this issue May 31, 2016 · 2 comments
Assignees

Comments

@cliu6688
Copy link

cliu6688 commented May 31, 2016

Dear Author:

I am having a very similar problem with the closed issue #103. The error message I have is:

g++ -DHAVE_CONFIG_H -I. -I..  -I.. -I../Common -I/home/cliu/my_apps/abyss-1.9.0 -isystem/share/apps/include/ -isystem/share/apps/include//include -isystem/share/apps/lib/openmpi/include   -I/share/apps/include/ -isystem/home/cliu/my_apps/abyss-1.9.0/boost_1_56_0 -Wall -Wextra -Wno-strict-aliasing -g -O2 -MT SimpleGraph-SimpleGraph.o -MD -MP -MF .deps/SimpleGraph-SimpleGraph.Tpo -c -o SimpleGraph-SimpleGraph.o `test -f 'SimpleGraph.cpp' || echo './'`SimpleGraph.cpp
SimpleGraph.cpp: In function 'void* worker(void*)':
SimpleGraph.cpp:650:28: error: cannot convert 'std::istream {aka std::basic_istream<char>}' to 'bool' in initialization
   bool good = (*arg.in) >> er;
                            ^~
make: *** [SimpleGraph-SimpleGraph.o] Error 1

I am trying to compile abyss 1.9.0. I am using gcc (GCC) 6.1.0. I have tried to change the code to

bool good = (bool) ((*arg.in) >> er);

This solves the compilation problem but later I have segmentation fault with SimpleGraph. So I suppose my solution is not correct. Your help on this is greatly appreciated.

best,

chang

@benvvalk
Copy link
Contributor

Hi Chang,

Shaun recently noticed the same problem and made some fixes. I've included a patch below. I've also pushed the changes to the master branch of the public repo, so you can just pull from there if you prefer.

gcc-6.1.0.patch.txt

@benvvalk benvvalk self-assigned this May 31, 2016
@stale
Copy link

stale bot commented Feb 15, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants