🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41811

C or C++ linkage for std/cmath.h routines? (gcc 2.7.2)

#41811
From: Tony Coates
Date: Wed, 14 Feb 1996 00:00
22 lines
1728 bytes
We have just upgraded our SP2 (RS/6000) system from gcc 2.7.0 (AIX 3.2)
to gcc 2.7.2 (AIX 4.1), and in compiling a program of mine which uses
the `std/cmath.h' and `std/complext.h' headers, there was a problem of
confused linkage; in `std/cmath.h' the function `hypot' is defined with
C++ linkage, while `std/cmath.h' takes the precaution of declaring it as
external with C linkage.
	Is this a known problem with the headers, or can anyone suggest what I
have done?  Is it wrong to expect to use `std/cmath.h' rather than
`math.h' with `std/complext.h'?  I would be grateful for any replies,
preferably posted to my email address below.
	Thanks very much in advance,
						Cheers,
								Tony.
_______________________________________________________________________________
A.B.Coates, Dept. of Physics,
The University of Queensland  QLD  4072  Australia.
Email: coates@physics.uq.edu.au
WWW: http://www.physics.uq.edu.au:8001/people/coates.html
Phone: (07/+617) 33 65 34 24  Fax: (07/+617) 33 65 12 42
Disclaimer: The University is ignorant of my
            opinions, let alone guilty ...
_______________________________________________________________________________
Technical Details
Message-ID: <31216D2B.41C6@physics.uq.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2b53ce01ddc367fd,start
X-Google-Attributes: gid11318c,public
From: Tony Coates <coates@physics.uq.edu.au>
Subject: C or C++ linkage for std/cmath.h routines? (gcc 2.7.2)
Date: 1996/02/14
Message-ID: <31216D2B.41C6@physics.uq.edu.au>
X-Deja-AN: 139288830
content-type: text/plain; charset=us-ascii
organization: Department of Physics, The University of Queensland
mime-version: 1.0
newsgroups: gnu.gcc.help
x-mailer: Mozilla 2.0b5 (X11; I; OSF1 V3.2 alpha)