From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2181 invoked by alias); 5 Nov 2003 14:01:54 -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 2173 invoked from network); 5 Nov 2003 14:01:52 -0000 Received: from unknown (HELO mondriaan.stonethree.com) (168.210.56.27) by sources.redhat.com with SMTP; 5 Nov 2003 14:01:52 -0000 Received: from stonethree.com (koala.stonethree.com [192.168.1.15]) by mondriaan.stonethree.com (8.12.8/8.12.8) with ESMTP id hA5E1lU6018885 for ; Wed, 5 Nov 2003 16:01:49 +0200 Message-ID: <3FA90457.8010904@stonethree.com> Date: Wed, 05 Nov 2003 14:01:00 -0000 From: Andre du Toit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: Compiling pthreads with mingw Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003/txt/msg00133.txt.bz2 Hi. I am trying to get pthreads-win32 to compile with mingw, on M$2000. The 'pid_t' type is undefined when compiling 'sched.h'. The version of pthreads-win32 I have is that unpacked from 'pthreads-2003-08-15.exe'. I am using the g++ that ships with MinGW 3.1.0-1; i.e. gcc-g++-3.3.1-20030804-1 etc. Any suggestions? I imported the Visual C++ project file supplied with pthreads-win32 in Dev-C++ and tried to compile the DLL. Now it seems that 'sys/types.h' is not included, cause that should supply the 'pid_t' type. But I am not sure which of the gazillion #ifdefs to #undef, in order to have the 'pid_t' type defined (sys/types.h included). Which version combination of pthreads-win32 and mingw (g++ etc.) do you recommend? Greetings, Andre