Mail Archives: djgpp/1997/01/16/22:22:53
Hi
I'm trying to port a c++ program from Linux/g++ environment to djgpp, vs2.01.
My program uses the Complex class of libg++ and works fine in Linux. However,
djgpp gives me error messages, as if it doesn't recognize the complex class.
A test program for complex numbers follows:
#include <iostream.h>
#include <Complex.h>
main()
{
Complex a, b;
a = Complex(5.0,3.0);
b = Complex(3.0,-2.0);
cout << a << " " << b << endl;
}
This works fine on Linux, with a g++ ctest.cc. Not so in djgpp with
gxx ctest.cc. The complex classes and headers seem to be in djgpp\lang\cxx
and its std subdirectory. Is there something extra that I should perhaps do
in the djgpp.env file? Any other suggestions/advice?
At this point I would appreciate anything :) Especially since my regular
newsfeed is down for the past 3 weeks and I have to communicate through our
local freenet!
TIA
- Raw text -