From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24770 invoked by alias); 3 Mar 2004 00:43:35 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 24762 invoked from network); 3 Mar 2004 00:43:34 -0000 Received: from unknown (HELO mail.gmx.net) (213.165.64.20) by sources.redhat.com with SMTP; 3 Mar 2004 00:43:34 -0000 Received: (qmail 20408 invoked by uid 65534); 3 Mar 2004 00:43:32 -0000 Received: from dhcp-19-189.via-eth.ch (EHLO benjamin) (192.33.101.189) by mail.gmx.net (mp008) with SMTP; 03 Mar 2004 01:43:32 +0100 X-Authenticated: #1349322 Subject: Strange error when linking against pthread using Visual Studio .NET From: Benjamin Schindler Reply-To: config@gmx.ch To: pthreads-win32@sources.redhat.com Content-Type: text/plain Message-Id: <1078274693.17578.7.camel@benjamin> Mime-Version: 1.0 Date: Wed, 03 Mar 2004 00:43:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00020.txt.bz2 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