This is the mail archive of the pthreads-win32@sources.redhat.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Strange error when linking against pthread using Visual Studio .NET


I'm working with a friend on a small project that is supposed to run on
both Windows and Linux. The project makes use of threads, and so far,
the threading works just fine under Linux. However, in Windows (with the
pthread library) it wont work:

When compiling in debug mode, the program crashes with:
An unhandled exception of type 'System.TypeLoadException' occurred in
voxel.exe

Additional information: Could not load type pthread_t_ from assembly
voxel,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.

When compiling in release mode, it won't even compile: the linker fails
with
voxel fatal error LNK1254: metadata for symbol
'?vo_registerCommand@@$$J0YAXPADP6AXPAPAD@Z@Z' inconsistent with COFF
symbol table

Any ideas here?
Thank you


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]