g++
명령 전에 변수를 선언 한 후 g++
명령이 작동하지 않습니다. 예를 들어g ++ : Bash에서 변수를 선언 한 후 "명령을 찾을 수 없습니다"
, 다음 작품 :
echo "Train LINE starts"
g++ -lm -pthread -Ofast -march=native -Wall -funroll-loops -ffast-math -Wno-unused-result line.cpp -o line -lgsl -lm -lgslcblas
그러나이 수행 하지 : g++: command not found
:
PATH="foo path"
echo "Train LINE starts"
g++ -lm -pthread -Ofast -march=native -Wall -funroll-loops -ffast-math -Wno-unused-result line.cpp -o line -lgsl -lm -lgslcblas
는 대신,이 오류가 발생합니다. 변수를 선언하는 올바른 방법입니까?