No rule to make target 'openmp'?
问题 The following is defined in the makefile: CXX = g++ CXXFLAGS = -std=c++11 I would like to compile my code with OpenMP directives without changing the original makefile (which runs perfectly). The manual suggests a way to do this, is by changing it on the command line. However, when I run, make CXXFLAGS=-std=c++11 -fopenmp the error mentioned before pops up. Can someone help me understand what I'm doing wrong? 回答1: The problem here is the space between -std=c++11 and -fopenmp . It splits these