rrwick / Bandage

a Bioinformatics Application for Navigating De novo Assembly Graphs Easily
http://rrwick.github.io/Bandage/
GNU General Public License v3.0
579 stars 96 forks source link

Workaround for compiling on Ubuntu 18.04 #75

Open nylander opened 5 years ago

nylander commented 5 years ago

Hi,

I tried compiling the source following the instructions for Ubuntu 14.04 on Ubuntu 18.04 (gcc version 7.3.0), but fail due to (what I understand) a bug on the Ubuntu side. A dirty hack is to edit some system files, then compile Bandage, and then revert the system files. Ugly, but it seems to work.

Simply change #include_next to #include at locations in the three files below.

Cheers /J

$ sudo vim /usr/include/c++/7/cstdlib
// #include_next <stdlib.h>
#include <stdlib.h>

$ sudo vim /usr/include/c++/7/bits/std_abs.h
// #include_next <stdlib.h>
#include <stdlib.h>

$ sudo vim /usr/include/c++/7/cmath
// #include_next <math.h>
#include <math.h>
alienzj commented 5 years ago

Duplicate of #36

Nilad commented 5 years ago

Same Issue

doug65536 commented 4 years ago

Editing system headers is a bad idea.