This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Problems with compiling with gcc-4.3.2: no matching function/candidates are


Hi everybody,

I have an application which was compiled with gcc-3.3.3 and compiled
fine. The thing is that when I compile with gcc-4.3.2 it give some
error messages. Most of the error messages where related of missing
libraries declarations (stdlib.h, memory, string.h, etc.).

Now I stocking on a problem that I could not solve, but actually I
understand the problem, but it is stupid that it give that erro
message:
../TT_TTCStream.cpp: In member function ‘void Gstvi::Components::Ttscm::TT_
TTCStream::RcvTelecommand(unsigned char*, long unsigned int)’:
../TT_TTCStream.cpp:185: error: no matching function for call to
‘Gstvi::Components::Ttscm::TT_TTCStream_IF::ReceiveTelecommand(char*&,
Smp::Int32)’
../TT_DownUplink_IF.h:114: note: candidates are: virtual void
Gstvi::Components::Ttscm::TT_DownUplink_IF::ReceiveTelecommand(const
Smp::Char8*, Smp::Int32&)
../TT_TTCStream.cpp:188: error: no matching function for call to
‘Gstvi::Components::Ttscm::TT_TTCStream_IF::ReceiveCLTU(char*&,
Smp::Int32)’
../TT_DownUplink_IF.h:119: note: candidates are: virtual void
Gstvi::Components::Ttscm::TT_DownUplink_IF::ReceiveCLTU(const
Smp::Char8*, Smp::Int32&)

Just a small code snap:

TT_TTCStream.h - file:

#include "TT_TTCStream_IF.h"
namespace Ttscm
{

class TT_TTCStream_IF;

TT_TTCStream::TT_TTCStream (...)

void RcvTelecommand (unsigned char* buf,unsigned long size);

}

TT_TTCStream.cpp - file:

namespace Ttscm
{

TT_TTCStream::TT_TTCStream (TT_TTCStream_IF *pTTCStreamIF) {
??? _TT_TTCStream_IF = pTTCStreamIF;
}

void TT_TTCStream::RcvTelecommand (unsigned char* buf, unsigned long size)
{
? ? ?? //The problem is on this line !!!
????? _TT_TTCStream_IF->ReceiveTelecommand(dataToPass, (::Smp::Int32)size);
}

In the TT_TTCStream_IF.cpp does not contain any function called
ReceiveTelecommand()!

TT_TTCStream_IF.h - file:
namespace Ttscm
{
class TT_TTCStream_IF : public TT_DownUplink_IF, ...
}

What is interesting is that in the TT_DownUplink_IF.h and
TT_DownUplink_IF.cpp we have a method called? virtual void
ReceiveTelecommand ( String8 buf, Int32& size );

It should be actually possible to use the ReceiveTelecommand with
TT_TTCStream_IF, because it heritates from TT_DownUplink_IF this
method. In gcc-3.3.3 was no problem, but now with gcc-4.3.2 it gives
this error messages.

I also googled around but could not get any conclusion why this error appears.

Can somebody help me out here....please!??????

Do not hesitate in asking me for more informations?!

Cheers,
Miguel Lordelo.


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