Article View: gnu.gcc.help
Article #41690HPUX -- math.h (and gdb?)
From: Ivo Welch
Date: Sun, 25 Feb 1996 00:00
Date: Sun, 25 Feb 1996 00:00
30 lines
1223 bytes
1223 bytes
Our system administrator is running gcc 2.7.2 on an HPUX system. Oddly, on
other gcc systems, using C++, I need to include math.h with C linkage. But
on HPUX, math.h needs to be declared as std C++ header file. This is
annoying, to say the very least, because it means that I need to have IFDEF
statements for code that is supposed to run on many operating systems. Is
there an easy way to fix this problem?
/ivo welch
PS: Are there known problems with debugging on HPUX (-g and gdb)?
sample.cc:
extern "C" {
#include <stdio.h>
#include <math.h>
}
int main() {
printf("sin(3.0)=%f\n", sin(3.0));
return 0;
}
--
Ivo Welch ivo.welch@anderson.ucla.edu
Assoc Prof of Finance Anderson GSM at UCLA
110 Westwood Plaza, Box 951481, LA CA 90095-1481
UCLA AGSM Finance Faculty Homepage: HTTP://next.agsm.ucla.edu/
Technical Details
Message-ID:
<4gqc5k$8qi@risc.agsm.ucla.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,99825bb569eeca19,start X-Google-Attributes: gid11318c,public From: ivo.welch@agsm.ucla.edu (Ivo Welch) Subject: HPUX -- math.h (and gdb?) Date: 1996/02/25 Message-ID: <4gqc5k$8qi@risc.agsm.ucla.edu> X-Deja-AN: 141105842 organization: The Anderson School at UCLA newsgroups: gnu.gcc.help