-
Notifications
You must be signed in to change notification settings - Fork 28
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
Conflicting Declarations WiFiRM04 & Arduino1.6.4 #30
Comments
I can confirm I get the same error messages with Arduino 1.6.3. I also get the same issue when I try to compile any of the examples supplied with the library. Further info: Developing for an Arduino Due, so can't go back to Arduino 1.0.6. |
Hi, May I know which Arduino borad you're using? "c:\users\xxxx\appdata\roaming\arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1\arm-none-eabi\include\sys\types.h:97:24: error: conflicting declaration 'typedef short unsigned int u_short' It seems you're not using Arduino AVR board? (because arm-none-eabi-gcc is gcc for ARM) I've never tried to build this lib for non Arduino AVR boards (e.g. Arduino Due) but I've tried ScanNetworks.ino could be compiled successfully (Mega2560 board) with my IDE 1.6.3. |
Hi, Thanks for your response. Yes the board is an Arduino Due. Would the solution be for me to rename this typedef from |
Looking into this further the issues all seem to relate to various unsigned int data types.
According to http://www.arduino.cc/en/Reference/Int the Arduino Due stores ints as "a 32-bit (4-byte) value". |
for size_t, I thought you could just convert it to uint16_t (Arudino's WiFi lib does this too, check Arduino\libraries\WiFi\src\WiFiClient.cpp) It should be fine since most sketches won't read 64K bytes at once. This what WiFi lib dose: int WiFiClient::read(uint8_t* buf, size_t size) { |
Thanks your suggestion overcame the issue in WiFiClient::read. Had a similar issue with WiFiUDP::read and took a similar approach:
Also had a compile problem with wifi_spi.h indicating Now having compile issues with spi_drv.cpp:
But I'm having trouble tracking down where these are normally defined. |
Hi, You could just remove spi_drv.cpp and spi_drv.h. I think this should work. |
Hi chunlinhan, |
I have the same problem. Can you help me please. |
Getting conflicts when I try and include WiFiRM04 library using Arduino 1.6.4:
Will try going back to Arduino 1.6.3
The text was updated successfully, but these errors were encountered: