delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/05/03:55:56

X-Recipient: archive-cygwin AT delorie DOT 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:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=Vs2
hNMuG6NOZXHTA9rnabraoZ1x8ClrTtgWm7Y42v2a6gTt0bJ4Zrshp3j4xfI8cNbL
LGGxmg1+pZ1DOnV0ra30UTcBlOjMwYQsEpkOUQABMNoFJYMJNvD4DKbre3Egybzb
ZAA7oLosPJb61h9yTGb+dWp4ZdyObaD3egYfsp7U=
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:from:to:subject:date:content-type
:content-transfer-encoding:mime-version; s=default; bh=8y6T05UUt
4rEsQ+3w/df2rU8zOY=; b=vTq+tw1cqrJaaAo7ZOLlVApR0gIGhLDmtWsBFqHcf
k/UKCa1IZI/GlSfArZJK5i9dLCqZ5QmImE5VxcYoLfO3hw0DjHrmtSQnBtc4iTeU
G+yxZdLdLd0iap+B6sCMu0PO2m2HOAe4a8A6YIZ12kaMVIdvOXQPlW8qqWZk89HC
8I=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GENERIC_IXHASH,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD autolearn=ham version=3.3.1
X-EIP: [AgCLMeLzzciQrtDliqcmODgJlz//3pxr]
Message-ID: <DUB119-W3796F37E6889123A62BD45C8DA0@phx.gbl>
From: Sonya Blade <sonyablade2010 AT hotmail DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: parse error before "extern"
Date: Fri, 5 Apr 2013 08:55:25 +0100
MIME-Version: 1.0
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id r357tpoD018688

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) ===|



The code snippet that corresponds to possible are is follow, 

// CODE SNIPPET 
#if defined(__cplusplus)
extern "C" {
#endif

/* require an int variable large enough to hold a pointer */
#if !defined(MPIUNI_INTPTR)
#define MPIUNI_INTPTR long
#endif

/* MPIUNI_TMP is used in the macros below only to stop various C/C++ compilers
from generating warning messages about unused variables while compiling PETSc.
*/

 extern void *MPIUNI_TMP;     // CARET POSITION OF COMPILER POINTS HERE 

#define MPI_COMM_WORLD       1
....
.....
....
// CODE SNIPPET END 		 	   		  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019