This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

virtual function override intended? - compiler error

Hi

I got a problem with an interface class in the c28 project of Concerto F28M36x processor. The same line in m3 project works fine, but why does the compiler complain about not overloading the function.

It says this function hides the one from the interface class, and warning is then >virtual function overload intended?<

Oh yes it is intended, but the compiler does not give a hint about what is wrong and the same line works in the other project. so please help me what is wrong now in this line? (see code snippes below)

Complete Error message:

Description    Resource    Path    Location    Type
function "IPCcom::send(IpcMessage &)" is hidden by "f28M36x_c28::IpcCom_c28::send" -- virtual function override intended?    Ipc_Com_c28.hpp    /__demo_prj_mtoc_ipcdrivers_lite_c28    line 60    C/C++ Problem

class IpcMessage {
    static const u32 maxLen = 5;
    u32 len;
    u8 data[maxLen];

public:
    StdError writeNext( u8* data, u32 len );
    void clearMessage();
};

class IPCcom {
public:
    /// a number between 0 and 32 - (32 flags at all)
    typedef u32 IpcFlag;

public:
    virtual StdError send( IpcMessage &msg ) = 0;
};

class IpcCom_c28 : public IPCcom {
public:
>>error is here>>    virtual StdError send( IpcMessage &msg );     ///(IpcMessage is NOT in a namespace)

  • I am unable to reproduce the error.  Please preprocess the problem source file and attach that to your next post.  Also show the compiler version and the build options exactly as the compiler sees them.

    Thanks and regards,

    -George