Skip to content

We need a few pieces of code for further understanding! #22

@BuggerBag

Description

@BuggerBag

Can you guide me? Suppose I am a newbie who knows nothing about the tool you have created and wants to start a small project with Wolfcrypt on Arduino. I have read the entire document many times, but I don't know why Arduino generates a series of errors for its own sake and then gives the error again after fixing the error.

  • version of wolfssl on arduino: 5.8.2
  • ESP8266 with WiFi
  • running example of wolfssl: wolfssl_version.ino
  • latest arduino software
    only open the example file of arduino & compile, the

Error of Arduino look like this:

In file included from c:\Users\cloudi\Documents\Arduino\libraries\wolfssl\src/wolfssl/ssl.h:262,
from c:\Users\cloudi\Documents\Arduino\libraries\wolfssl\src/wolfssl.h:41,
from C:\Users\cloudi\AppData\Local\Temp.arduinoIDE-unsaved202598-4484-f2lltk.v37w\wolfssl_version\wolfssl_version.ino:37:
c:\Users\cloudi\Documents\Arduino\libraries\wolfssl\src/wolfssl/wolfio.h:473:31: error: 'socklen_t' has not been declared
473 | #define XSOCKLENT socklen_t
| ^~~~~~~~~
c:\Users\cloudi\Documents\Arduino\libraries\wolfssl\src/wolfssl/wolfio.h:516:72: note: in expansion of macro 'XSOCKLENT'
516 | WOLFSSL_API int wolfIO_TcpAccept(SOCKET_T sockfd, SOCKADDR* peer_addr, XSOCKLENT* peer_len);
| ^~~~~~~~~

exit status 1
Compilation error: exit status 1

Maybe this first question has an easy answer that I haven't paid attention to until now.
but
I asked a very important question at the next, that I really need help with. Perhaps my question will be the question of many others in the near future.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions