Skip to content

invalid preprocessing directive #extern when using umm_malloc #1652

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
andig opened this issue Feb 19, 2016 · 1 comment
Closed

invalid preprocessing directive #extern when using umm_malloc #1652

andig opened this issue Feb 19, 2016 · 1 comment

Comments

@andig
Copy link
Contributor

andig commented Feb 19, 2016

After upgrading

Updating fec1a64..55e5bdf

Including umm_malloc is no longer possible- regardless if called with extern or not:

//extern "C" {
  #include <user_interface.h>
  #include <umm_malloc/umm_malloc.h>
//}

result:

In file included from C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266/umm_malloc/umm_malloc.h:13:0,
         from C:\andi\htdocs\vzero\vzero.ino:37:
C:\andi\arduino\hardware\esp8266com\esp8266\cores\esp8266/umm_malloc/umm_malloc_cfg.h:10:2: error: invalid preprocessing directive #extern
 #extern "C" {
  ^
exit status 1
Error compiling.
@andig
Copy link
Contributor Author

andig commented Feb 19, 2016

Should it possibly be extern "C" instead of #extern "C" in https://github.com/esp8266/Arduino/blob/master/cores/esp8266/umm_malloc/umm_malloc_cfg.h#L10?

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