Error compiling for board ESP32-WROOM-DA Module

Hi, I was working on a project and while compiling the code the error msg: "Error compiling for board ESP32-WROOM-DA Module" appeared how should i go about it and fix it.

It would be great if the entire error message was posted.

In file included from /Users/binuandrajesh/Documents/Arduino/libraries/WiFi101/src/WiFiClient.h:28,
from /Users/binuandrajesh/Documents/Arduino/libraries/WiFi101/src/WiFi101.h:35,
from /Users/binuandrajesh/Documents/Arduino/smart_insole/smart_insole.ino:4:
/Users/binuandrajesh/Documents/Arduino/libraries/WiFi101/src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from /Users/binuandrajesh/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/tools/sdk/esp32/include/newlib/platform_include/sys/unistd.h:23,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/unistd.h:4,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/pthread.h:25,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/tools/sdk/esp32/include/newlib/platform_include/pthread.h:21,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/xtensa-esp32-elf/no-rtti/bits/gthr-default.h:48,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/xtensa-esp32-elf/no-rtti/bits/gthr.h:151,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/ext/atomicity.h:35,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/bits/basic_string.h:39,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/string:52,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/stdexcept:39,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/array:39,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/tuple:39,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/include/c++/8.4.0/functional:54,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/cores/esp32/HardwareSerial.h:49,
from /Users/binuandrajesh/Library/Arduino15/packages/esp32/hardware/esp32/2.0.5/cores/esp32/Arduino.h:174,
from sketch/smart_insole.ino.cpp:1:
/Users/binuandrajesh/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32-elf/sys-include/sys/unistd.h:30:9: note: previous declaration 'int close(int)'
int close (int __fildes);
^~~~~
exit status 1
Error compiling for board ESP32-WROOM-DA Module.

1 Like

it looks like a name conflict with one of the libraries and another variable/constant thingy.

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

so what should i do how should i fix it

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.