bk19+@ANDREW.CMU.EDU ("Bradley D. Keister") (01/06/90)
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
tiemann@AI.MIT.EDU (Micheal Tiemann) (01/06/90)
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