2012-07-27 2 views
5

ldflag가없는 makefile이 있습니다. 나는 그것을 고치는 방법을 안다. 그러나 makefile의 어떤 줄이 생성되는지는 모른다.오류시 줄 번호를 표시하도록 만들기

+ make 
    CCLD test 
test-test.o: In function `write_png': 
/home/lenovo/scratch/libass/test/test.c:52: undefined reference to `png_create_write_struct' 
... 
/home/lenovo/scratch/libass/test/test.c:57: undefined reference to `png_destroy_write_struct' 
collect2: ld returned 1 exit status 
make: *** [test] Error 1 

오류가 발생한 행을 인쇄하려면 어떻게해야합니까?

는 (사람이 궁금해 경우, 테스트 디렉토리에 libass 프로젝트에서 메이크입니다.)

+1

당신의 메이크 파일을 보여주세요. 'make '는 링크 명령에서만 가능하기 때문에 makefile의 라인을 알려주지 않습니다. – shkschneider

+0

libass 라이브러리는 http://code.google.com/p/libass/에서 찾을 수 있습니다. 테스트 디렉토리에 makefile을 빌드하고있었습니다. V = 1에서 잘못된 명령을 올바르게 실행할 수 있으므로 누락 된 라이브러리가 -lpng이라는 것을 알고 있습니다. – rhlee

답변

관련 문제