Hi
I am a newbie on this forum, but have been using Visual Micro with Visual Studio 2015 for a little while now. However, I have now hit a perplexing problem.
I'm trying to compile a sketch from
https://github.com/Azure/azure-iot-arduino-protocol-mqtt/tree/master/examples/si... I have included the following libraries using the ArduinoIDE Library Manager
#include <AzureIoTHub.h>
#include <AzureIoTUtility.h>
#include <AzureIoTProtocol_MQTT.h> Everything compiles and builds fine under Arduino 1.8.1 (using version 2.3.0 of the ESP 8266 Boards Manager file).
However, when I try to compile this using Visual Micro (registered Version 1.1611.21, Version Minor 170119) on Visual Studio 2015 (Community Version 14.0.25431.01 Update 3) I get the following error
azcpgmspace.cpp:5: In file included from
azcpgmspace.h: 15:53: fatal error: azure_c_shared_utility/crt_abstractions.h: No such file or directory
#include "azure_c_shared_utility/crt_abstractions.h"
compilation terminated
An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'simplesample_mqtt' When I traced out the calls, the calling file was in
libraries/AzureIoTHub/src/esp8266/azcpgmspace.h and the called library that could not be found was in
libraries/AzureIoTUtility/src/azure_c_shared_utility/crt_abstractions.h Following some of the hints in the forum, I tried turning off Deep Search.
While this then allowed all of the libraries to successfully compile, I came up with another error as follows:-
VM_DBG.h: 51:25: fatal error: ESP8266mDNS.h: No such file or directory
#include <ESP8266mDNS.h>
compilation terminated
Error compiling libraries
error: This hardware might not support the default Serial debugger.
Try switching the toolbar from 'Debug' to 'Release' and build again.
or switch off Automatic Debugging
or configure the SoftwareSerial debugger option.
Debug build failed for project 'simplesample_mqtt' I checked that the file was indeed present by successfully using
#include <ESP8266mDNS.h> in the main ino file.
Finally, by changing from Debug Mode to Release Mode, everything compiled and built okay, but this is clearly not optimal.
As I will likely need to use Debug Mode to help debug new software based on this example, any help would be greatly appreciated and save me tearing any more hair out