pthreadGCE2.dll损坏的文件错误 [英] pthreadGCE2.dll corrupted file error
问题描述
大家好,
我在项目上的VS2008上使用pthread32库.
编译时出现此错误:
D:\Pre-built.2\lib\pthreadGCE2.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x290
我将项目链接到以下目录中的必要库:
project/linker/general/Additional library directories
我下载了新的pthread库并替换了旧的pthread库,但仍然是相同的错误.
有人可以帮助我.
Hi everyone,
I''m using pthread32 library on a VS2008 on a project.
When compiling, I get this error:
D:\Pre-built.2\lib\pthreadGCE2.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x290
I linked the project to the necessary libraries in the:
project/linker/general/Additional library directories
I downloaded new pthread libraries and replaced older ones, but still the same error.
Someone could help me.
thanks in advance.
推荐答案
在我看来,您正在尝试使用通过GNU编译器编译的pthread的副本.虽然这是可能的,但您需要链接.
可以使用Visual Studio编译器在p http://sourceware.org/pthreads-win32/<编译pthreads源的副本. /a> [^ ].我最近在Visual Studio 2008中使用了它.
这也将有助于调试,因为调试器将能够向您确切显示代码出了什么问题.
It looks to me that you are trying to use a copy of pthreads compiled with the GNU compiler. While this is possible you are required to link.
There is a copy of the pthreads source which can be compiled with the Visual Studio compiler at http://sourceware.org/pthreads-win32/[^]. I used it recently with Visual Studio 2008.
This will also help with debugging, as the debugger will be able to show you exactly what is going wrong with your code.
这篇关于pthreadGCE2.dll损坏的文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!