2011년 7월 8일 금요일

msys/minGW ffmpeg 빌드후 VC++에서 static 링크 에러처리

"error LNK2019: unresolved external symbol __imp____lc_codepage referenced in function _mbrlen libmingwex.a
error LNK2001: unresolved external symbol __imp____lc_codepage libmingwex.a



< 해결방법 (출처 : http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=1&t=891) >

 1. Make sure you have got VS2005 or VS2008 in your path.

2. Go to mingw/lib where you have libmingwex.a

3. use command "lib -remove:mbrtowc.o libmingwex.a"

4. use command "lib -remove:wcrtomb.o libmingwex.lib" note the ending .lib

5. link with libmingwex.lib and 

댓글 없음:

댓글 쓰기