🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Dave Clemans APD x1292 Thu, 25 May 1989 16:54
G++ 1.35 extern "language" problems
#2021
Author: Dave Clemans APD x1292
Date: Thu, 25 May 1989 16:54
18 lines
1227 bytes
(This report refers to version 1.35.0+ of G++)

I've started playing with G++ on Apollo's (using my gnu2coff object file
converter), and have noticed a couple problems with the 'extern "language"'
syntax.

First, 'extern "C"' is stricter in G++ than in other 2.0 implementations
of C++.  With 'extern "C"', G++ turns off the use of the "class" keyword
(among others); other 2.0 C++ implementations do not.  The specific example
I had locally is an "stdio" like header file that declared _iobuf as a class,
and all the various functions like getc, putc, etc. as friend functions of
the _iobuf class.  To keep names correct, this was all done within an
'extern "C"' bracket pair.

I also noticed that the 'extern "C++"' construct doesn't seem to work at all;
specifically it seems to produce the same effect as 'extern "C"'.

dgc
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads