-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Error when compiling sketch (strtok_r) #86
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
Comments
can you test the fix above? |
I just tried the fix, same error. |
can you provide an example, I don't get the error reproduced. |
I get the error with my aREST library that implements a REST interface for the chip. You can find the example here: https://github.com/marcoschwartz/aREST/tree/master/examples/ESP8266 |
is working fine.
i command it out and than it compile. i only wondering why the implementation is in the .h file and there is no .cpp file for the library? |
After pulling the latest, running ant clean and ant dist I get the same error on the mDNS example sketch. See if this pull request fixes it for you, it did for me. |
I have the same error as marcoschwartz: |
I also have the same error as marcoschwartz after doing a clean build. The gregslomin fix works for me. |
Just tried again with my aREST library + the gregslomin fix, now it works for me as well. |
merged the fix in 2edc522, thanks! |
* esp8266: (21 commits) HardwareSerial: add other configs than 8N1 Delete jre-8u31.zip.sha Fix Windows build Add boot loader compatible speed of 74880 to serial. update SDK to esp_iot_sdk_v1.0.1_15_04_24 include stdlib_noniso.h in Arduino.h see #110 strnlen implementation missing strn program space wrappers uart_interrupt_handler is now in ram move libm to flash (.irom0.text) saves 3544 Byte in ram see #104 Revert c_types.h fix bug #98 add INPUT_PULLDOWN support add prototypes for ets_vsnprintf and ets_vprintf fix some compiler warnings update SDK to 1.0.1_b2_15_04_10 + SSL Patch update SDK to 1.0.1_b1_15_04_02 add files to ignore (use hardlink) to get git hardware in arduino dir Add method to configure softAP IP address test for #86 add to ESP class: getChipId getSDKversion getBootVersion getBootMode getCPUfreqMHz ...
Hello,
Since the last commit (ec4f53e) I have an error with a sketch that was working before:
/Users/marco/Downloads/Arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/libc_replacements.c: At top level:
/Users/marco/Downloads/Arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/libc_replacements.c:166:25: error: conflicting types for 'strtok_r'
char* ICACHE_FLASH_ATTR strtok_r(char * str, const char * delimiters, char ** temp) {
^
/Users/marco/Downloads/Arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/esp8266com/esp8266/cores/esp8266/libc_replacements.c:163:12: note: previous implicit declaration of 'strtok_r' was here
return strtok_r(str, delimiters, NULL);
^
Error compiling.
Any idea about this issue? Thanks
The text was updated successfully, but these errors were encountered: