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 |
Message-ID: | <03AD0BE3A983D311A26400508B6BFB10039B5C60@XCGCA043> |
From: | "Lee, Robert C." <RLee AT northropgrumman DOT com> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | fork/exec help |
Date: | Thu, 13 Mar 2003 18:08:48 -0800 |
MIME-Version: | 1.0 |
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. Thanks, Robert Lee -- 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 |