This is the mail archive of the
mailing list for the Cygwin project.
Re: parse error before "extern"
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 05 Apr 2013 12:39:29 -0400
- Subject: Re: parse error before "extern"
- References: <DUB119-W3796F37E6889123A62BD45C8DA0 at phx dot gbl>
- Reply-to: cygwin at cygwin dot com
On 4/5/2013 3:55 AM, Sonya Blade wrote:
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.
> 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
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple