Thread View: gnu.g++.bug
2 messages
2 total messages
Started by "Bradley D. Keister"
Fri, 05 Jan 1990 17:02
VMS g++ libraries
Author: "Bradley D. Keister"
Date: Fri, 05 Jan 1990 17:02
Date: Fri, 05 Jan 1990 17:02
21 lines
948 bytes
948 bytes
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
VMS g++ libraries
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads