Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to FFF FreeRTOS.. getting "error: use of deleted function ... " #51

Closed
mhuangwm opened this issue Jun 18, 2018 · 2 comments · May be fixed by #85
Closed

Attempting to FFF FreeRTOS.. getting "error: use of deleted function ... " #51

mhuangwm opened this issue Jun 18, 2018 · 2 comments · May be fixed by #85

Comments

@mhuangwm
Copy link

mhuangwm commented Jun 18, 2018

Hello,

I am trying to stub out some FreeRTOS API using FFF. At the moment, I am trying to stub out xTimerCreate:

FAKE_VALUE_FUNC(TimerHandle_t, xTimerCreate, const char * const, const TickType_t, const UBaseType_t, void * const, TimerCallbackFunction_t);

However, I am getting a compilation error:

error: use of deleted function 'xTimerCreate_Fake::xTimerCreate_Fake()'
     FAKE_VALUE_FUNC(void *, xTimerCreate, const char * const, const TickType_t, const UBaseType_t, void * const, TimerCallbackFunction_t);

Unfortunately, I cannot change the production code to abstract out FreeRTOS.

Any ideas how I can get around this?

Thanks

@mhuangwm
Copy link
Author

This was the same as #3

I noticed the fix was for C only, so I've compiled the file under C-only and it seems to be compiling that file with no errors.

Out of curiosity, I am wondering why is the fix C-Only? i.e. what limitations of the fix does it not translate to C++ as well?

@meekrosoft
Copy link
Owner

Hi William,
Glad for the feedback. I suppose the fix in C-only since that was what was in the pull request. I would be happy to accept a pull request that adds C++ support :-)
Best regards,
Mike

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants