在Visual Studio中使用Linux / MinGW中编译的libs / dlls [英] Using libs/dlls compiled in Linux/MinGW in Visual Studio
问题描述
更新:在编译时收到此警告:找到具有不同属性的多个'.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?
交叉编译器生成
- *。dll.a
- *。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屋!