brave-experiments / ad-block

Ad block engine used in the Brave browser for ABP filter syntax based lists like EasyList.
https://www.brave.com
Mozilla Public License 2.0
239 stars 95 forks source link

Cannot compile main.cc #161

Closed ali-idrizi closed 5 years ago

ali-idrizi commented 5 years ago

I cloned the project and tried to compile main.cc using the command

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)

pes10k commented 5 years ago

Please check out the build instructions in the README.md file, starting with the Developing brave/ad-block section. That should get you started :)