From -3274916962155213835
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ea96cc047f6a22cc
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-08-16 09:29:07 PST
Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!btnet-peer1!btnet-peer0!btnet!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: Francis Glassborow <francis.glassborow@ntlworld.com>
Newsgroups: comp.std.c++
Subject: Re: extern "C" -- what is the intent?
Date: Thu, 16 Aug 2001 16:27:50 GMT
Organization: Southfield Microcomputer SS
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <j4ZdSpBbg7e7EwTD@ntlworld.com>
References: <090820010209154805%BobbySchmidt@mac.com>
 <AFhFdLA6bWe7EwlG@ntlworld.com> <9lclar$cs6$1@panix3.panix.com>
 <F46UitAWXre7Ew2z@ntlworld.com> <9lfb5f$7so$1@panix3.panix.com>
Reply-To: Francis Glassborow <francisG@robinton.demon.co.uk>
X-Trace: mail2news.demon.co.uk 997979283 mail2news:7969 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 5.00 U <TilyaeicE$WmMOP9F8P4$y3lmP>
Lines: 25
Xref: archiver1.google.com comp.std.c++:7014

In article <9lfb5f$7so$1@panix3.panix.com>, Greg Comeau
<comeau@panix.com> writes
>>However, as long as such
>>things as size and alignment are compatible, C++ can require that a C++
>>compiler supports calling a function written in C.
>
>I think I disagree.  I mean, I think it can try hard for it,
>but don't think it does go that full mile in the current C++ language
>specification.  Maybe I'm misunderstanding you though.

No, I am sure we are in agreement. C & C++ compilers must be compatible
for a C++ program to link in a call to a function implemented and
compiled by a C compiler. 

Francis Glassborow      ACCU
64 Southfield Rd
Oxford OX4 1PA          +44(0)1865 246490
All opinions are mine and do not represent those of any organisation

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]



