delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/14/08:59:26

Message-ID: <380574DF.CB287795@accord-soft.com>
Date: Thu, 14 Oct 1999 11:44:55 +0530
From: "Sunil V." <sunilv AT accord-soft DOT com>
Organization: Accord Software & Systems Pvt. Ltd.
X-Mailer: Mozilla 4.7 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp <djgpp AT delorie DOT com>
Subject: extern "C"
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------F113EBF95DE819D840799A0D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,
    I have written a C code parser. I have to parse a test code, whose
files are with .cpp extension, but the code is in C (it is basically a
windows application).
    I'm using gcc to preprocess the input and then parsing the
preprocessed code. Now the problem is , i have syntax error since, the
preprocessed code has something like

extern "C"
{

/* some code */

}


My parser cannot parse the above code. Now i cannot change extension to
.c since the code uses some header files for which _cplusplus has to be
defined.

First, i want to know what does this extern "C" means?
Is there any way by which i can prevent this in the preprocessed file?
If that is not possible, what are different ways in which this may
appear in preprocessed code?
(e.g. is saw some declaration like  extern "C" int something; )

Thanx in advance,

Regards Sunil
--
_________________________________________________________________________________

They call it "take home" pay, coz' you can't afford to go anywhere else
with it.
_________________________________________________________________________________



--------------F113EBF95DE819D840799A0D
Content-Type: text/x-vcard; charset=us-ascii;
 name="sunilv.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Sunil V.
Content-Disposition: attachment;
 filename="sunilv.vcf"

begin:vcard 
n:V;Sunil
tel;home:341 4609
tel;work:556 0136 / 138 / 105
x-mozilla-html:FALSE
org:Accord Software & Systems Pvt. Ltd.;Software Division
adr:;;;;;;
version:2.1
email;internet:sunilv AT accord-soft DOT com
x-mozilla-cpt:;-3328
fn:Sunil V
end:vcard

--------------F113EBF95DE819D840799A0D--

- Raw text -


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