Mail Archives: djgpp/2000/05/14/19:59:09
I just downloaded the lgp2952b.zip file that contains C++ (sorry, G++ :)
library but that doesn't help.
--
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror: http://members.xoom.com/alexfru
"Alexei A. Frounze" wrote:
>
> I tried your suggestions, but the error is still the same.
>
> Compiler points to the line where I try to define that complex variable.
>
> No matter how I define it:
> complex j = complex (0,1);
> or
> complex j(0,1);
>
> I have still the same problem. "complex" is an unknown thing, although I
> have a lot of include files for complex math: complex.h, complex,
> complext.h, ...
>
> bye.
> Alexei A. Frounze
> -----------------------------------------
> Homepage: http://alexfru.chat.ru
> Mirror: http://members.xoom.com/alexfru
>
> Damian Yerrick wrote:
> >
> > On Mon, 15 May 2000 01:00:50 +0400, "Alexei A. Frounze"
> > <alex DOT fru AT mtu-net DOT ru> wrote:
> >
> > >Hi!
> > >
> > >I'm trying to get working the following program:
> > >----------------8<----------------
> > >#include <iostream.h>
> > >#include <complex.h>
> >
> > Change the above lines to
> >
> > #include <iostream>
> > #include <string>
> > using namespace std;
> >
> > >int main(void) {
> > > complex j = complex(0,1);
> >
> > How about
> > complex j(0, 1);
> >
> > > cout << "hello world!\n";
> > > return 0;
> > >}
> > >----------------8<----------------
> > >
> > >I'm trying to compile it using: gcc -c test.cc
> > >But I get an Error: "'complex' undeclared (first use in this function)".
> >
> > Error on what line?
> >
> > --
- Raw text -