From: bz333 AT FreeNet DOT Carleton DOT CA (Anastasios Drosopoulos) Newsgroups: comp.os.msdos.djgpp Subject: gxx and complex numbers ? HELP Date: 16 Jan 1997 16:46:50 GMT Organization: The National Capital FreeNet Lines: 28 Message-ID: <5blm1q$mls@freenet-news.carleton.ca> Reply-To: bz333 AT FreeNet DOT Carleton DOT CA (Anastasios Drosopoulos) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 #include 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