2012-07-27 20 views
5

Bir ldflag eksik bir makefile sahibim. Nasıl düzeltileceğini biliyorum ama makefile içinde hangi satırın üretildiğini bilmiyorum.Hata numarası satır numarasını gösterme hatası

+ 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 

nasıl hata olduğunu hattına yazdırmak için yapmak yapılıyor?

(herkes merak ise, deney dizinde libass projesinden bir makefile budur.)

+1

Bize makefile'yi gösterin. 'make' size makefile'nin hattını söylemez çünkü sadece bağlantı komutunda olabilir. – shkschneider

+0

Libass kütüphanesini http://code.google.com/p/libass/ adresinde bulabilirsiniz. Test dizininde makefile yapıyorum. Yanlış kütüphaneyi doğruca V = 1 yapabildiğim için eksik kütüphanenin -lpng olduğunu biliyorum. – rhlee

cevap

İlgili konular