Path: 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: Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Lines: 34 Date: Fri, 5 Jan 90 12:02:50 -0500 (EST) From: "Bradley D. Keister" I tried sending this directly to Angel Li@flipper.miami.edu, but the network was down. The following program: #include #include 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