[問題] ffmpeg跟VC的編譯問題

看板Programming作者 (ㄎ)時間17年前 (2008/09/01 23:56), 編輯推噓1(101)
留言2則, 2人參與, 最新討論串1/4 (看更多)
我已經用 msys 編譯好 ffmpeg 了, 但我開了 VC的CPP專案,要套到我的 directshow程式卻發生了 link error 我看網路有人把 __stdcall 改成 _cdecl *就解決了,但我兩種都無法解決我的問題.. 我已經設定好 link 到下面的檔案, VC應該是有找到檔案 ..\ffmpeg\libavformat\libavformat.a ..\ffmpeg\libavcodec\libavcodec.a 但就是編譯失敗QQ.....只差一步了... 不知道有誰可以提點一下~謝謝 error LNK2001: unresolved external symbol "void __stdcall av_register_all(void)" (?av_register_all@@YGXXZ) error LNK2001: unresolved external symbol "void __stdcall dump_format(struct AVFormatContext *,int,char const *,int)" (?dump_format@@YGXPAUAVFormatContext@@HPBDH@Z) error LNK2001: unresolved external symbol "int __stdcall av_find_stream_info(struct AVFormatContext *)" (?av_find_stream_info@@YGHPAUAVFormatContext@@@Z) error LNK2001: unresolved external symbol "int __stdcall av_open_input_file(struct AVFormatContext * *,char const *,struct AVInputFormat *,int,struct AVFormatParameters *)" (?av_open_input_file@@YGHPAPAUAVFormatContext@@PBDPAUAVInputFormat@@HPAUAVFormatParameters@@@Z) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.128.189.251 ※ 編輯: nosrep 來自: 220.128.189.251 (09/01 23:57)

09/02 01:01, , 1F
calling convention要用 _cdecl ?
09/02 01:01, 1F

09/02 20:20, , 2F
改過了,但還是會編譯失敗
09/02 20:20, 2F
文章代碼(AID): #18l12Hz8 (Programming)
文章代碼(AID): #18l12Hz8 (Programming)