X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 20 Oct 2008 15:05:44 +0700 From: bjoe To: cygwin AT cygwin DOT com Subject: problem compile with gcc Message-ID: <20081020080448.GA3724@dwtc-a4> Mail-Followup-To: cygwin AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Dear Sir, When I try to compile C source with Cygwin I get this error (the source code originally write with borland) $ gcc -mno-cygwin test.c In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/security.h:38, from test.c:54: /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/sspi.h:60: error: parse error before "SECURITY_STRING" In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/security.h:39, from test.c:54: /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:123: error: parse error before "SECURITY_STRING" /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:125: error: parse error before "LogonServer" /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:127: error: parse error before '}' token /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:212: error: parse error before "SECPKG_NAME_TYPE" /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:225: error: parse error before "SECPKG_NAME_TYPE" /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/ntsecpkg.h:342: error: parse error before "PSecurityUserData" In file included from test.c:59: test.h:30:3: warning: no newline at end of file In file included from test.c:60: psutils.h:47:66: warning: no newline at end of file In file included from parser.h:22, from test.c:61: pcre.h:37:7: warning: no newline at end of file test.c: In function `ExecuteInfo': test.c:445: error: `MEMORYSTATUSEX' undeclared (first use in this function) test.c:445: error: (Each undeclared identifier is reported only once test.c:445: error: for each function it appears in.) test.c:445: error: parse error before "sMSE" test.c:482: error: `sMSE' undeclared (first use in this function) test.c:495: error: `ComputerNameMax' undeclared (first use in this function) test.c:498: error: `COMPUTER_NAME_FORMAT' undeclared (first use in this function) test.c:498: error: parse error before "iCnf" test.c:510: error: `NameFullyQualifiedDN' undeclared (first use in this function) test.c:515: error: `NameSamCompatible' undeclared (first use in this function) test.c:520: error: `NameUserPrincipal' undeclared (first use in this function) The thing that confusing me is the error came from w32api packages, not from source code. Maybe someone in this list can explain to me about what going on here. Regard -- It is easy to say no when there is a deeper yes burning within -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/