2012-07-27 8 views
5

Ho un makefile, che manca un ldflag. So come aggiustarlo, ma non so quale riga nel makefile venga generato l'errore.Get make to show numero di riga in caso di errore

+ 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 

Come faccio a stampare per fare in modo che l'errore sia attivo?

(Se qualcuno si chiede, è un makefile dal progetto libass nella directory test.)

+1

Mostraci il tuo makefile. 'make' non ti dirà la linea del makefile perché può essere solo sul comando di collegamento. – shkschneider

+0

Puoi trovare la libreria libass qui http://code.google.com/p/libass/. Stavo creando il makefile nella directory di test. So che la libreria mancante è -lpng perché posso eseguire correttamente il comando sbagliato da make V = 1. – rhlee

risposta