From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10211 invoked by alias); 2 Nov 2004 09:59:10 -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 10203 invoked from network); 2 Nov 2004 09:59:08 -0000 Received: from unknown (HELO mail.informatik.hu-berlin.de) (141.20.20.50) by sourceware.org with SMTP; 2 Nov 2004 09:59:08 -0000 Received: from [141.20.27.40] (rosmarin [141.20.27.40]) (authenticated bits=0) by mail.informatik.hu-berlin.de (8.12.10/8.12.10/INF-2.0-MA-SOLARIS-2.8) with ESMTP id iA29x8Bn014009 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 2 Nov 2004 10:59:08 +0100 (MET) Message-ID: <41875A6B.5040103@voigt.in-berlin.de> Date: Tue, 02 Nov 2004 09:59:00 -0000 From: Bastian Voigt User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: unexpected end of file :-( Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004/txt/msg00123.txt.bz2 Hello List! I am working with pthreads-win32 and the microsoft vc++ compiler version 6. I have a problem I already spent hours on: I have ported a source file which was perfectly working before, to run in an own pthread. Now the compiler always bitches about "unexpected end of file" (fatal error C1004). On the following MSDN library page a verbose error description can be found: http://msdn.microsoft.com/library/en-us/vccore/html/C1004.asp - When I comment out all the pthreads related function calls and the #include pthreads statement, then the file compiles perfectly. And yes, I am pretty sure that those lines are syntactically correct. - When all the used pthread_* functions are defined as macros the file also compiles perfectly: //#include #define pthread_setcancelstate(a, b) #define PTHREAD_CANCEL_DISABLE 1 #define pthread_cleanup_push(a,b) #define pthread_exit(a) So it appears to me that the problem must lie somewhere inside pthread.h ? BTW my project also includes the IBM SCC libraries (see http://www-3.ibm.com/security/cryptocards/html/overproduct.shtml). I have managed to compile and run a little pthreads example program, but that was without SCC library import... Any thoughts on this matter highly appreciated.. Greetings Bastian Voigt