[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
extern "C" {}
From: |
Han-Wen Nienhuys |
Subject: |
extern "C" {} |
Date: |
Tue, 26 Sep 2000 14:58:58 +0200 (CEST) |
gcc 2.96 from redhat 7.0
from the manual:
`implicit C language'
Old C system header files did not contain an `extern "C" {...}'
scope to set the language. On such systems, all header files are
implicitly scoped inside a C language scope. Also, an empty
prototype `()' will be treated as an unspecified number of
arguments, rather than no arguments, as C++ demands.
this seems in conflict with:
#include <stdio.h>
extern "C"
{
extern FILE * popen();
}
->
g++ -c -o foo.o foo.cc
foo.cc:4: declaration of C function `FILE *popen ()' conflicts with
/usr/include/stdio.h:574: previous declaration `FILE *popen (const char
*, const char *)' here
--
Han-Wen Nienhuys | address@hidden | http://www.cs.uu.nl/~hanwen/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- extern "C" {},
Han-Wen Nienhuys <=