Robot-Will / Stino

A Sublime Text Plugin for Arduino
Other
1.58k stars 250 forks source link

fail compiling wire libraries #403

Closed guillotl closed 7 years ago

guillotl commented 7 years ago

Hi,

I installed ST3 and the Stino2017 plugin recently and when I compile a program containing the wire.h library, I have a compile error message that appears.

In the wire.cpp function, I have the line #include "utility / twi.h"

How can I fix this error?

Regards,

[Build] C:/Users/guillotl/Documents/Arduino/Mirf... [Step 1] Check Toolchain. [Step 2] Find all source files. [Step 3] Start building. [2.9%] Compiling Mirf.ino.cpp... [5.9%] Compiling SPI.cpp... [8.8%] Compiling Wire.cpp... [11.8%] Compiling Mirf.cpp... [14.7%] Compiling MirfHardwareSpiDriver.cpp... [17.6%] Compiling MirfSpiDriver.cpp... [20.6%] Compiling I2C_LCD.cpp... [23.5%] Compiling abi.cpp... [26.5%] Compiling CDC.cpp... [29.4%] Compiling HardwareSerial.cpp... [32.4%] Compiling HardwareSerial0.cpp... [35.3%] Compiling HardwareSerial1.cpp... [38.2%] Compiling HardwareSerial2.cpp... [41.2%] Compiling HardwareSerial3.cpp... [44.1%] Compiling IPAddress.cpp... [47.1%] Compiling main.cpp... [50.0%] Compiling new.cpp... [52.9%] Compiling PluggableUSB.cpp... [55.9%] Compiling Print.cpp... [58.8%] Compiling Stream.cpp... [61.8%] Compiling Tone.cpp... [64.7%] Compiling USBCore.cpp... [67.6%] Compiling WMath.cpp... [70.6%] Compiling WString.cpp... [73.5%] Compiling hooks.c... [76.5%] Compiling WInterrupts.c... [79.4%] Compiling wiring.c... [82.4%] Compiling wiring_analog.c... [85.3%] Compiling wiring_digital.c... [88.2%] Compiling wiring_pulse.c... [91.2%] Compiling wiring_shift.c... [94.1%] Compiling wiring_pulse.S... [97.1%] Linking everything together... [100.0%] Creating binary files... C:\Users\guillotl\AppData\Local\Temp\cc1AQ2Ej.ltrans0.ltrans.o: In function endTransmission': C:/Program Files/Arduino/packages/arduino/hardware/avr/1.6.17/libraries/Wire/src/Wire.cpp:173: undefined reference totwi_writeTo' C:\Users\guillotl\AppData\Local\Temp\cc1AQ2Ej.ltrans0.ltrans.o: In function write': C:/Program Files/Arduino/packages/arduino/hardware/avr/1.6.17/libraries/Wire/src/Wire.cpp:228: undefined reference totwi_transmit' C:/Program Files/Arduino/packages/arduino/hardware/avr/1.6.17/libraries/Wire/src/Wire.cpp:210: undefined reference to twi_transmit' C:\Users\guillotl\AppData\Local\Temp\cc1AQ2Ej.ltrans0.ltrans.o: In functionrequestFrom': C:/Program Files/Arduino/packages/arduino/hardware/avr/1.6.17/libraries/Wire/src/Wire.cpp:114: undefined reference to twi_readFrom' C:\Users\guillotl\AppData\Local\Temp\cc1AQ2Ej.ltrans0.ltrans.o: In functionbegin': C:/Program Files/Arduino/packages/arduino/hardware/avr/1.6.17/libraries/Wire/src/Wire.cpp:63: undefined reference to `twi_init' collect2.exe: error: ld returned 1 exit status [Build] Error occurred.

Robot-Will commented 7 years ago

Fixed, thanks!