在Visual Studio中使用Linux / MinGW中编译的libs / dlls [英] Using libs/dlls compiled in Linux/MinGW in Visual Studio

查看:261
本文介绍了在Visual Studio中使用Linux / MinGW中编译的libs / dlls的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新:在编译时收到此警告:找到具有不同属性的多个'.text'节

Update: I get this warning when compiling: multiple '.text' sections found with different attributes

Hi,

我在Linux中使用MinGW Cross Compiler编译了一些库(.a和.dll)。我可以成功地链接到他们(.a)在Visual Studio 2008.但是,当它运行(使用.dll),它终止与地址指针指向空内存地址。

I've compiled some libraries (.a and .dll) in Linux using the MinGW Cross Compiler. I can successfully link against them (.a) in Visual Studio 2008. However, when it runs (using .dll), it terminates with the address pointer pointing at empty memory addresses.

有没有办法/一个列表的事情,这将允许我在VC08中成功使用这些库?

Is there a way/a list of things to do that will allow me to use those libraries successfully in VC08?

交叉编译器生成


  1. *。dll.a

  2. *。dll

谢谢

推荐答案

找到了。

http://www.mingw.org/wiki/MSVC%5Fand%5FMinGW%5FDLLs

您必须有一个def文件,并使用VC的lib工具生成导入库。

You have to have a def file and use the VC's lib tool to generate an import library.

这篇关于在Visual Studio中使用Linux / MinGW中编译的libs / dlls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆