g++-4.6 -g -O2 -Wall -o0 -DMODE=0 -I -I/scheduler -I/swan -I.. -I../scheduler -std=c++0x -momit-leaf-frame-pointer -fno-omit-frame-pointer -pthread -S ../../scheduler/wf_stack_frame.cc -o wf_stack_frame.s
cc1plus: error: output filename specified twice
문제는 -o0
출력 파일 이름을 지정하는 명령 0
에 -o wf_stack_frame.s
. 이어야합니다 -O0 [capital letter O]
. 이미 -O2
명령에 그것을 제거하고 사용 -O0
하거나 그 반대로 할 수 있습니다. 둘 다 언급하면 마지막 옵션이 효과적입니다.
출처
https://stackoverflow.com/questions/22080100