X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=c9zerTBIwEFibvlc
	SAUECCmf1wD1ImUwqyhgUzAH6v0pe5Ui/jHgntLh+OooWU9WRarBBHXONxdpRTOb
	wWNRvwL5gCGgYwT7O1QpX0D7OhC5mFhJjPg5WBaSg75rw1r8FZtuzFPO33Yr9mbn
	hOn7MDUj/peaTPyKolmbHVzWfhU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=dT5ZMa2BKqG1cV/RCfYyRQ
	9afmo=; b=IE1+aXd5pBSA+eImsMa1Bv3ULUtFPiGw87JA4kZokFZvSTiMhKTdlM
	l0X0LUiSRwRXzlaXM6p0lbfH5IISNnArKuPwwsBVDHvby2ziBErfa+/8d+BUvKy8
	9zD6OkF22yBFoBrx1BmEE38s4yAF6gW1MfxSuOsA9AD2UE9JcrgSI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE autolearn=no version=3.3.1
Message-id: <515EFE41.9020007@cygwin.com>
Date: Fri, 05 Apr 2013 12:39:29 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: parse error before "extern"
References: <DUB119-W3796F37E6889123A62BD45C8DA0@phx.gbl>
In-reply-to: <DUB119-W3796F37E6889123A62BD45C8DA0@phx.gbl>
Content-type: text/plain; charset=windows-1254; format=flowed
Content-transfer-encoding: 7bit

On 4/5/2013 3:55 AM, Sonya Blade wrote:
> Dear All,
>
> I've the working C code just before 1 day back, but when I try to
> compile  the project as of now I receive the following error. What
> could be the possible reason  of that ?
>
> C:\Users\......\Downloads\petsc-3.3-p6\include\mpiuni\mpi.h|119|error: parse error before "extern"|
> D:\TEST_FOLDER_dell\PROJECTS\CBFortran\Slepc_C\main.c||In function `main':|
> ||=== Build finished: 1 errors, 6 warnings (0 minutes, 2 seconds) ===|

My WAG?  You're suffering from carriage returns in your file, probably as
a result of unzipping with WinZip or another Windows utility.  Best to use
Cygwin tools to avoid these problems.  For now, you can try running
the affected files through 'dos2unix'.

If this isn't the problem, you'll need to be more specific.  If you can
provide a small sample which reproduces the problem for you, that could
be helpful.  The snippet you provided, when put in a C file by itself
and compiled with Cygwin's gcc, generates no compile errors.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

