2014-02-14 44 views
0

今天我安裝了快板5.作爲a link。 但是當我開始寫一個非常簡單的代碼。 當我使用"g++ allegro_test.cpp -o output.out pkg-config --libs allegro5.0" 編譯時,它返回allegro undefined reference to al install system。 當我使用pkg-config --cflags --libs allegro-5.0。 它只返回-lallegro。 我能做些什麼來解決這個問題?快板無法正確鏈接

回答

0

這是一個錯誤?它只返回-lallergo

嘗試用編譯:g++ allegro_test.cpp -o output.out -lallegro

+0

是它只返回-lallergo.I想可能有一些,當它被設置錯了。 –

+0

你的意思是它返回alleRGo不allegrao? – fritzone

+0

抱歉,這是我的錯誤。 –