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

strcopy and strcat show error #278

Closed
DeJHDante opened this issue Mar 26, 2021 · 1 comment · Fixed by #610
Closed

strcopy and strcat show error #278

DeJHDante opened this issue Mar 26, 2021 · 1 comment · Fixed by #610
Assignees
Labels
conclusion: resolved Issue was resolved topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@DeJHDante
Copy link

Compiling for esp8266 NodeMCU 1.0, this statement

strcat(message, ";");

shows this error
No matching function for call to 'strcat'
:26:15:
note: candidate function not viable: requires 0 arguments, but 2 were provided clang(ovl_no_viable_function_in_call)

strcpy(message, deviceID); does the same thing.

However, the compilation seems to work and give the same result as IDE 1.0 in terms of executable segment sizes that I haver not yet tested the code by uploading to the esp8266.

@per1234 per1234 transferred this issue from arduino/Arduino Mar 26, 2021
@mink99
Copy link

mink99 commented Apr 18, 2021

Image4

#include <stdio.h>
#include <string.h>

void setup() {
  // put your setup code here, to run once:
char str[80];
  strcpy (str,"these ");
  strcat (str,"strings ");
  strcat (str,"are ");
  strcat (str,"concatenated.");
  puts (str);
}

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

}

see the temporary fix for #55

@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added type: imperfection Perceived defect in any part of project topic: language server Related to the Arduino Language Server labels Sep 22, 2021
@per1234 per1234 linked a pull request Nov 25, 2021 that will close this issue
@per1234 per1234 added the conclusion: resolved Issue was resolved label Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants