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

CC3220 — 'ltoa' was not declared in this scope #30

Open
rei-vilo opened this issue Oct 24, 2018 · 0 comments
Open

CC3220 — 'ltoa' was not declared in this scope #30

rei-vilo opened this issue Oct 24, 2018 · 0 comments

Comments

@rei-vilo
Copy link
Member

The following sketch succeeds to compile against the CC3200 but fails against the CC3220SF.

  • Error message

/private/var/folders/px/cyfvtr757lqg0yp_cv9j79jh0000gn/T/arduino_modified_sketch_537852/sketch_oct24a.ino: In function 'void setupsketch_oct24a()':
sketch_oct24a:6:22: error: 'ltoa' was not declared in this scope
ltoa(value, str, 10);
^
exit status 1
'ltoa' was not declared in this scope

  • Minimal code
void setup() {
  // put your setup code here, to run once:
  long value = 12.34;
  char * str;
  ltoa(value, str, 10);
}

void loop() {
  // put your main code here, to run repeatedly:

}
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