Closed huguespoiget closed 7 years ago
Added to my to do list, probably fixed today or tomorrow.
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/LogParser.o sources/LogParser.cpp
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/Rotator.o sources/Rotator.cpp
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/AViewer.o sources/AViewer.cpp
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/TermViewer.o sources/TermViewer.cpp
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/CursesViewer.o sources/CursesViewer.cpp
clang++ -W -Wextra -Wall -Werror -ansi -pedantic -pthread --std=c++11 -Iincludes -Ilibs/c++ -c -o sources/main.o sources/main.cpp
clang++ sources/Core.o sources/LogParser.o sources/Rotator.o sources/AViewer.o sources/TermViewer.o sources/CursesViewer.o sources/main.o -o BabelFish -lncurses
I have no issue compiling with clang++
, could you be more precise with the version of clang++ you're currently using ? Mine is clang 3.5.0-10
.
Seems to be a special version of clang (LLVM) that is installed on macOS by default.
$ g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
I am currently trying to install on my computer the same version of clang than you.
Finally found that @huguespoiget hadn't got the last version of ncurses on his mac. Please don't forget to install version 5.0 or more and to link it correctly so the program can compile.
In order to fix my issue I installed last version of ncurses with brew:
brew install ncurses
Then I changed several lines of the Makefile:
CXXFLAGS += -W -Wextra -Wall -Werror -ansi -pedantic
CXXFLAGS += -pthread --std=c++11 -Iincludes -Ilibs/c++
LDFLAGS += -lncurses
by the following:
CXXFLAGS += -W -Wextra -Wall -Werror -ansi -pedantic
CXXFLAGS += -pthread --std=c++11 -Iincludes -Ilibs/c++ -I/usr/local/opt/ncurses/include
LDFLAGS += -lncurses -L/usr/local/opt/ncurses/lib
Here the trace I have when I try to make BabelFish: