Closed ddustin closed 5 years ago
@ddustin this, this doesn't look right?
@dcousens Here is the exact error I got when compiling master with this commit: f956214cd5b3b66fe53ca3aeb36e9c9710b76773
$ make g++-8 -pedantic -std=c++1z -W -Wall -Wcast-qual -Wconversion -Werror -Wextra -Wwrite-strings -Wno-unused-function -O3 -Iinclude -MMD -MP -c src//bestchain.cpp -o src//bestchain.o g++-8 -pedantic -std=c++1z -W -Wall -Wcast-qual -Wconversion -Werror -Wextra -Wwrite-strings -Wno-unused-function -O3 -Iinclude -MMD -MP -c src//parser.cpp -o src//parser.o g++-8 src//bestchain.o src//parser.o -lcrypto -O3 -o bestchain duplicate symbol _main in: src//bestchain.o src//parser.o ld: 1 duplicate symbol for architecture x86_64 collect2: error: ld returned 1 exit status make: *** [bestchain] Error 1
Found a cleaner solution and posted it here: https://github.com/bitcoinjs/fast-dat-parser/pull/20
The Makefile was failing on OSX. Not sure if the extra slash is OSX specific so this update just filters out both cases.