This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Code compiled with 2.7, doesn't with egcs, please help


Hi!

I had the following code:

SMatrix::SMatrix(double_complex & d){
...
};

SMatrix::SMatrix(double x){
  double_complex cx=x;
  ((SMatrix*)this)->SMatrix(cx);
}

which worked with g++ 2.7.2 but when I tried to compile it
under egcs 1.0.1, I got:

Spinor.cc: In method `SMatrix::SMatrix(double)':
Spinor.cc:116: no matching function for call to `SMatrix::SMatrix
(complex<double> &)'

Could anybody help me with that?

Please, replay also to my private e-mail adress since
the sooner I solve it the sooner I could start my further work.

Thanks in advance,

Jacek



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]