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]

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


You will have to provide a more reproducable (working, standalone)
piece of code before we can say anything useful about it.

Nevertheless, you might be helped most by using the latest egcs
version.  See egcs.cygnus.com for more information.

| 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
| 


-- 
 Carlo Wood  <carlo@runaway.xs4all.nl>


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