www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/15/02:27:57

Date: Mon, 15 Apr 1996 09:21:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
Cc: djgpp AT delorie DOT com
Subject: Re: MikMod210 [Linking C and C++ together]
In-Reply-To: <4kqd3m$n1q@freenet-news.carleton.ca>
Message-Id: <Pine.SUN.3.91.960415091941.3945A-100000@is>
Mime-Version: 1.0

On 14 Apr 1996, Paul Derbyshire wrote:

> So THAT's what EXTERN "C" does! I've always wondered... it's in all the
> djgpp .h files, presumably because they used c++ to write the libraries
> such as libc and libpc.

No, these ``extern "C"'' declarations are there so C++ programs can call 
functions from the C library.  The library is written in C and (a small 
part of it) in assembly.

- Raw text -


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