From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26121 invoked by alias); 29 Nov 2011 20:52:27 -0000 Received: (qmail 26113 invoked by uid 22791); 29 Nov 2011 20:52:26 -0000 X-SWARE-Spam-Status: No, hits=4.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,TW_CV X-Spam-Check-By: sourceware.org Received: from blu0-omc3-s28.blu0.hotmail.com (HELO blu0-omc3-s28.blu0.hotmail.com) (65.55.116.103) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Nov 2011 20:52:10 +0000 Received: from BLU0-SMTP472 ([65.55.116.72]) by blu0-omc3-s28.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Nov 2011 12:52:09 -0800 Message-ID: Received: from [192.168.200.11] ([88.64.210.15]) by BLU0-SMTP472.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 29 Nov 2011 12:52:08 -0800 Date: Tue, 29 Nov 2011 20:52:00 -0000 From: Immanuel Dold User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: pthreads-win32@sourceware.org Subject: compiler error with vs 2008 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2011/txt/msg00028.txt.bz2 Hello everybody. I am new to this project but I need help. I am a German student and I am currently working with PTAM and libcvd. The program I am building works fine under windows 7 32-bit. The problem is that my tutor for my thesis works with windows 7 64-bit. You are probably guessing right that on that machine the program only hangs. I get a 100% processor load but the program not even gets to the main() function. Until now I used pthread 2.8.0 and after some research on the net I found out that I have to use more recent code. Since there is no release I tried to build my own libraries. This is why I looked up for wincvs and checked out the newest code from the server. I looked into the README file for instructions on how to build all the .lib and .dll files. Now there is my problem. Using nmake from Visual Studio 2008 Pro with the parameters "clean VC" and "clean VSE" works just fine. But libcvd and PTAM rely both on the VCE version and so I tried "nmake clean VCE" and there I got stuck. The compiler throws errors (C2264) in "ptw32-MCS_lock.c" in lines 108, 127, 136, 197 and 215 saying that the it can not cast "volatile size_t *" into "volatile LONG *". I do not even know if the current code resolves my problem and my programs will run on a x64 machine. So if you think pthread 2.8.0 should run in a win32 (not x64) application on a x64 machine it does not bother me not being able to compile the proper *VCE.dll. But if you could (or is it "can"?) help me building the libraries, I would be very happy. One thing left: My knowledge about compilers especially nmake is very limited but since I am using VS I would prefer to stay with nmake. Thanks to everybody taking the time to help me. Sincerely yours, Immanuel