quickstack
quickstack copied to clipboard
make get error from bfd.h
I'm on archlinux with gcc, g++ 6.1.1
when I use make
, I got those response
[ 50%] Building CXX object CMakeFiles/quickstack.dir/quickstack.cc.o
In file included from /home/kernel/quickstack/quickstack.h:4:0,
from /home/kernel/quickstack/quickstack.cc:1:
/usr/include/bfd.h:35:2: error: #error config.h must be included before this header
#error config.h must be included before this header
^~~~~
CMakeFiles/quickstack.dir/build.make:62: recipe for target 'CMakeFiles/quickstack.dir/quickstack.cc.o' failed
after some searching, I put
#define PACKAGE 1
#define PACKAGE_VERSION 1
to avoid this problem.
Maybe we should try to avoid this problem without this kind of dirty trick.
Thanks.