Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 14 Mar 2003 00:35:34 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: fork/exec help Message-ID: <20030314053534.GA12940@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <03AD0BE3A983D311A26400508B6BFB10039B5C60 AT XCGCA043> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03AD0BE3A983D311A26400508B6BFB10039B5C60@XCGCA043> User-Agent: Mutt/1.5.1i On Thu, Mar 13, 2003 at 06:08:48PM -0800, Lee, Robert C. wrote: >Hello, > >I'm trying to compile a simple fork/exec program in vc6 using cygwin but I >can't get past the vc compiler complaining about an include file: > >main.cpp >c:\cygwin\usr\include\sys\_types.h(13) : error C2632: 'long' followed by >'long' is illegal >c:\cygwin\usr\include\sys\_types.h(13) : error C2144: syntax error : missing >';' before type 'long' >c:\cygwin\usr\include\sys\_types.h(13) : error C2501: '__extension__' : >missing storage-class or type specifiers >c:\cygwin\usr\include\sys\_types.h(13) : fatal error C1004: unexpected end >of file found >Error executing cl.exe. > >Here's the code: > >#include >#include >#include > >int main (int argc, char** argv) >{ > > cout <<"forking...."< pid_t pid = fork(); > ...... >} > >The only thing I did in VC was add the include path to the cygwin include >files. Any help would be appreciated. It's probably not the help you want but "You can't do that". The header files available for cygwin are meant to be used with gcc. You can't use them with MSVC. Sorry. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/