Skip to content

strcopy and strcat show error #278

Closed
@DeJHDante

Description

@DeJHDante

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.

Activity

transferred this issue fromarduino/Arduinoon Mar 26, 2021
mink99

mink99 commented on Apr 18, 2021

@mink99

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

linked a pull request that will close this issueUpdate Theia, CLI and LS #610on Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @cmaglie@fstasi@per1234@mink99@rsora

    Issue actions

      strcopy and strcat show error · Issue #278 · arduino/arduino-ide