Closed ali-idrizi closed 5 years ago
I cloned the project and tried to compile main.cc using the command
main.cc
g++ -std=c++11 main.cc -o main.o
I tried it on two systems and every time I am getting the following error:
main.cc:(.text+0x6b0): undefined reference to `AdBlockClient::AdBlockClient()' main.cc:(.text+0x6d9): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0x702): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0x72b): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0x754): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0x911): undefined reference to `AdBlockClient::AdBlockClient()' main.cc:(.text+0x93a): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0x963): undefined reference to `AdBlockClient::parse(char const*, bool)' main.cc:(.text+0xab8): undefined reference to `AdBlockClient::~AdBlockClient()' main.cc:(.text+0xad6): undefined reference to `AdBlockClient::~AdBlockClient()' main.cc:(.text+0xc8b): undefined reference to `AdBlockClient::~AdBlockClient()' main.cc:(.text+0xcb3): undefined reference to `AdBlockClient::~AdBlockClient()'
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
Please check out the build instructions in the README.md file, starting with the Developing brave/ad-block section. That should get you started :)
README.md
I cloned the project and tried to compile
main.cc
using the commandI tried it on two systems and every time I am getting the following error:
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)