Article View: gnu.g++.bug
Article #2131VMS g++ libraries
From: Micheal Tiemann
Date: Fri, 05 Jan 1990 21:32
Date: Fri, 05 Jan 1990 21:32
34 lines
1202 bytes
1202 bytes
Date: Fri, 5 Jan 90 12:02:50 -0500 (EST)
From: "Bradley D. Keister" <bk19+@andrew.cmu.edu>
I tried sending this directly to Angel Li@flipper.miami.edu, but the network
was down.
The following program:
#include <math.h>
#include <stdio.h>
main()
{
printf("sqrt(2): %g\n", sqrt(2));
}
dies at the link stage because the linker needs SQRT__FD and can't find it.
This program runs fine under VMS/GCC. Were we supposed to get the full
Unix g++ distribution and recompile the source, say, using the VMS/g++
executable? Also, we stole math.h from the VAX C header directory.
Brad Keister
Physics Department
Carnegie Mellon U
You need to do this oin your program:
extern "C"
{
#include "math.h"
}
Michael
Technical Details
Message-ID:
<9001052132.AA01648@corn-chex>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!tiemannReferences:
<kZdBAuq00VoNQGC39l@andrew.cmu.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!AI.MIT.EDU!tiemann From: tiemann@AI.MIT.EDU (Micheal Tiemann) Newsgroups: gnu.g++.bug Subject: VMS g++ libraries Message-ID: <9001052132.AA01648@corn-chex> Date: 5 Jan 90 21:32:34 GMT References: <kZdBAuq00VoNQGC39l@andrew.cmu.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Lines: 34