delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <cgf-cygwin AT cygwin DOT com> |
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 |
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 <sys/types.h> >#include <unistd.h> >#include <iostream.h> > >int main (int argc, char** argv) >{ > > cout <<"forking...."<<endl; > 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |