cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
2,434 Views
Registered: ‎05-21-2015

SDK 2014.4 sees errors, while compiler completes without any error

Hi,

 

quite for a while I have a pretty annoying bug in the SDK2014.4.

I started to develop some new parts in the project in C++ a few months ago and it worked quite well.

But now I'm facing more and more some strange errors displayed in the SDK.

While the compiler completes without any errors (see console tab in pic) the SDK parser shows some errors in some files.

 

In fact it shows a function is ambiguous error. I had this error before in a class where multiple functions with same names but different arguments have been, but I could get rid of them.

- Now in this case there is no other function with the same name so why could it be ambiguous?

- Or at least how can I avoid those "ghost errors" within the SDK?

 

Code:

 

class CANcontroller {
    public:
         typedef enum {

             ...
        } Status;
        ...
        virtual StdError setControllerStatus(CANcontroller::Status st) = 0;

        ...

}

 

class canMCP2515 : public CANbus::CANcontroller {

...

public:

typedef enum {
         ...
    } statusMCP2515; // has same names and values like CANcontroller::Status

 

     virtual StdError setControllerStatus(CANcontroller::Status st);

     ...

}

 

Compiler no error while SDK shows error.png
0 Kudos
1 Reply
Highlighted
Moderator
Moderator
2,230 Views
Registered: ‎04-17-2011

You can always delete the .metadata folder in SDK workspace on your Windows drive. Let the project re-build and see if it helps you.
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos