Skip to content

"error: 'F' was not declared in this scope" after using #include "mbed.h" #47

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

Closed
ArminJo opened this issue Aug 29, 2020 · 0 comments
Closed

Comments

@ArminJo
Copy link

ArminJo commented Aug 29, 2020

Hello,
I am porting the IRMP library to Arduino Nano 33 BLE, but get errors.
The minimal program reproducing it is:

// minimal error demo
#include <Arduino.h>
#include "mbed.h"
//#define F(a) a // This definition fixes the error: "error: 'F' was not declared in this scope"
mbed::Ticker sMbedTimer; // not use in minimal error demo

void setup() {
    Serial.begin(115200);
    // Just to know which program is running on my Arduino
    Serial.println(F("START " __FILE__ " from " __DATE__));
}

void loop(){
}

As documented, commenting out line 4 fixes it.
I saw, you introduced the behavior with this commit, but I do not know the background.

Can you add the fix #define F(a) a to mbed.h???

Thanks
Armin

@ArminJo ArminJo changed the title "error: 'F' was not declared in this scope" using #include "mbed.h" "error: 'F' was not declared in this scope" after using #include "mbed.h" Aug 29, 2020
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

No branches or pull requests

1 participant