Hi, thanks for your response.
I'm sorry there is something broken and it seems the code doesn't compile.
The intellisense coloring came back after I reinstalled VisualAssistX to VS2015, but I know something is still wrong, because it doesn't do coloring in the .ino file.
I have to put this problem on hold until I resolve why compilation fails. Now I think my problem is related to:
http://www.visualmicro.com/forums/YaBB.pl?num=1447430981 1) Board is Sanguino with ATmega1284p with changed F_CPU to 20 MHz, because I run it with external oscillator
2) Arduino IDE 1.0.6, didn't switched to newer version because the boards.txt file entries I have for sanguino are incompatible with newer version
3) Checked, it is set to win32
4) I will send you two outputs, both from VisualMicro and ArduinoIDE
I thought that program compiled fine before, but it turns out it did compile because it was reusing existing compiled object files.
I switched off incremental compilation in VisualMicro options.
Now the project fails to compile, complaining about missing things. For example it cannot find Wire.h
I already tried removing the project and restoring it. By restoring it I mean, I created a new Arduino project, and copied the source files into it. Unfortunately this doesn't help.
I've analyzed the output of both Visual Micro build and Arduino IDE compilation process. I've found a problem, but don't know what's causing it.
Whenever compiler is invoked, it doesn't get passed dependencies in VisualMicro. I'll show example for one file I'm using: DS1307RTC.cpp
Here is VisualMicro compilation for this file:
D:\Programy\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega1284p -DF_CPU=20000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -I"D:\Programy\arduino-1.0.6\hardware\arduino\cores\arduino" -I"D:\Programy\arduino-1.0.6\hardware\Sanguino\variants\sanguino" -o m\DS1307RTC\DS1307RTC.cpp.o" "C:\Users\Mikaka\Documents\Arduino\libraries\DS1307RTC\DS1307RTC.cpp"
And here is compilation for Arduino IDE:
D:\Programy\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega1284p -DF_CPU=20000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=106 -ID:\Programy\arduino-1.0.6\hardware\arduino\cores\arduino -ID:\Programy\arduino-1.0.6\hardware\Sanguino\variants\sanguino -ID:\Programy\arduino-1.0.6\libraries\Wire -IC:\Users\Mikaka\Documents\Arduino\libraries\smart_ptr -IC:\Users\Mikaka\Documents\Arduino\libraries\Time -IC:\Users\Mikaka\Documents\Arduino\libraries\DS1307RTC -IC:\Users\Mikaka\Documents\Arduino\libraries\Sim900 -IC:\Users\Mikaka\Documents\Arduino\libraries\AESLib -IC:\Users\Mikaka\Documents\Arduino\libraries\http_parser -IC:\Users\Mikaka\Documents\Arduino\libraries\DS1307RTC\utility C:\Users\Mikaka\Documents\Arduino\libraries\DS1307RTC\DS1307RTC.cpp -o RTC.cpp.o
As you can see VisualMicro fails to pass all the necessary directories to the compiler itself. I still can see all these directories in "Additional Include Directories" setting in Visual Studio. This causes following error just below above line:
DS1307RTC.cpp:25:18: warning: Wire.h: No such file or directory
DS1307RTC.cpp:In file included from
DS1307RTC.h:15:18: warning: Time.h: No such file or directory
DS1307RTC.cpp:In file included from
DS1307RTC.h:23: error: 'time_t' does not name a type
DS1307RTC.h:24: error: 'time_t' has not been declared
DS1307RTC.h:25: error: 'tmElements_t' has not been declared
DS1307RTC.h:26: error: 'tmElements_t' has not been declared
DS1307RTC.cpp:In constructor 'DS1307RTC::DS1307RTC()
DS1307RTC.cpp:32: error: 'Wire' was not declared in this scope
DS1307RTC.cpp:At global scope
DS1307RTC.cpp:36: error: 'time_t' does not name a type
DS1307RTC.cpp:43: error: variable or field 'set' declared void
DS1307RTC.cpp:43: error: 'time_t' was not declared in this scope
DS1307RTC.cpp:54: error: variable or field 'read' declared void
DS1307RTC.cpp:54: error: 'tmElements_t' was not declared in this scope
DS1307RTC.cpp:54: error: 'tm' was not declared in this scope
DS1307RTC.cpp:85: error: variable or field 'write' declared void
DS1307RTC.cpp:85: error: 'tmElements_t' was not declared in this scope
DS1307RTC.cpp:85: error: 'tm' was not declared in this scope