As in the title, I get this error, when I try to compile my program using makefile. When I run it in clion environment, everything is fine. I installed homebrew llvm library. Also I have Xcode. Here is my makefile:
output: main.o
g++ main.o -o output
main.o: main.cpp
g++ -fopenmp -std=c++17 -c -g -Wall -pedantic -Werror -o main.o main.cpp
I understand, there are similar questions related to this topic, however I was unable to solve this issue.