StupidBeauty
Read times:459Posted at:Mon Oct 8 22:40:23 2012
- no title specified

转载:把库文件从msvc格式(.lib)转化成MinGW格式(.a)的方法

在Windows平台,GCC的.a文件与Visual C++的.lib是相同格式的,所以库文件可以通用。Mingw-gcc版本的QtCreator甚至在让开发者选择外部静态库的时候直接就把文件扩展名设置成.lib了。

http://lutins.blog.163.com/blog/static/6180558320096642559641/

亮点:

不知道是否可行,可以试试。

GCC和VC都使用COFF格式,所以VC中的.obj .lib与gcc用的.o .a是一样的(在WINDOWS下),只是扩展名不一样,通常你只要改一下名称就OK啦!不过有些库不行,因为库中的代码可能会用到一些编译器专有的特 性,用VC做的.lib可能在gcc下没法通过编译(缺少符号),反之亦然。

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4