Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Build fails in Visual Micro but passes on Arduino - ESP8266 (RESOLVED IN LATEST RELEASE) (Read 3153 times)
Jakes
Newbies
*
Offline


Posts: 5
Joined: May 26th, 2018
Build fails in Visual Micro but passes on Arduino - ESP8266 (RESOLVED IN LATEST RELEASE)
May 26th, 2018 at 3:11pm
Print Post  
When running the build (esp8266\hardware\esp8266\2.4.1) and I include the following line :

t_httpUpdate_return ret = ESPhttpUpdate.update(uri);

It fails with the following output:

ESP8266HTTPClient.cpp.o*: In function HTTPClient::clear()

Error linking for board NodeMCU 1.0 (ESP-12E Module)
ESP8266HTTPClient.cpp:53: undefined reference to base64  encode(String, bool)
Debug build failed for project 'Firmware'
 
ESP8266HTTPClient.cpp.o*: In function HTTPClient::beginInternal(String, char const*)
ESP8266HTTPClient.cpp:53: undefined reference to base64  encode(String, bool)
 
collect2.exe*: error: ld returned 1 exit status

When I remove that line mentioned above, the build succeeds.

When running the same code base on PlatformIO (tool-scons @ 2.4.1), everything works fine.

I'm a bit lost of this.
« Last Edit: May 28th, 2018 at 1:15pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #1 - May 26th, 2018 at 3:29pm
Print Post  
Hi

I see you have Debug build enabled

Please switch to Release mode then try the build.

If it still fails then confirm the following:-

1) Does the project build in the arduino ide? which version have you installed?

2) Switch on vmicro>compiler>verbose and "show build properties". Then build and post the output as .txt or email it to info[at]visualmicro.com with link to this post.

Thanks
« Last Edit: May 28th, 2018 at 1:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Jakes
Newbies
*
Offline


Posts: 5
Joined: May 26th, 2018
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #2 - May 26th, 2018 at 4:25pm
Print Post  
I have got version 1.8.5 of the IDE installed, which compiles sucessfully:

Sketch uses 468633 bytes (44%) of program storage space. Maximum is 1044464 bytes.
Global variables use 49780 bytes (60%) of dynamic memory, leaving 32140 bytes for local variables. Maximum is 81920 bytes.


I have emailed the output. Its probably going to be something really mundane.
« Last Edit: May 28th, 2018 at 1:15pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #3 - May 26th, 2018 at 4:38pm
Print Post  
Thanks for the files.

I see you are using Visual Micro 1805.14. There has been some releases since then, one which makes a new build feature in 1805.14 optional. Please download from the visual studio gallery or via tools>extensions and updates>updates

If there is a still an issue, then in the arduino ide, please enable "file>preferences>verbose compile". Then build and email the output from the arduino build.

If you don't mind zipping and emailing your project so I can reproduce that would also speed things up. You could would  be kept private and deleted after the tests.

Thanks very much.
« Last Edit: May 28th, 2018 at 1:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Jakes
Newbies
*
Offline


Posts: 5
Joined: May 26th, 2018
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #4 - May 26th, 2018 at 4:50pm
Print Post  
Boom! The update fixed it. It must have been some sort of weird linker issue.  

My VS wasn't showing that an update was available. I had to physically go down the rabbit hole to find it.

Thanks for taking the time to have a look at it. I really do appreciate it.
« Last Edit: May 28th, 2018 at 1:16pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #5 - May 26th, 2018 at 4:57pm
Print Post  
Great. 

That's the new feature that allows source files in the local project to override library files that have the same name.

The option is now off unless enabled on vmicro>compiler menu.

The visual studio notification system is annoying. You might find it useful to keep an eye on working in progress by subscribing to notifications in the new release forum thread.
« Last Edit: May 28th, 2018 at 1:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build fails in Visual Micro but passes on Arduino - ESP8266
Reply #6 - May 26th, 2018 at 4:57pm
Print Post  
Great. 

That's the new feature that allows source files in the local project to override library files that have the same name.

The option is now off unless enabled on vmicro>compiler menu.

The visual studio notification system is annoying. You might find it useful to keep an eye on working in progress by subscribing to notifications in the new release forum thread.
« Last Edit: May 28th, 2018 at 1:16pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Jakes
Newbies
*
Offline


Posts: 5
Joined: May 26th, 2018
Re: Build fails in Visual Micro but passes on Arduino - ESP8266 (RESOLVED IN LATEST RELEASE)
Reply #7 - May 26th, 2018 at 5:06pm
Print Post  
Will do! 

P.S. The serial monitor in the dark theme is a nice touch.
« Last Edit: May 28th, 2018 at 1:16pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build fails in Visual Micro but passes on Arduino - ESP8266 (RESOLVED IN LATEST RELEASE)
Reply #8 - May 26th, 2018 at 5:10pm
Print Post  
Thanks, long overdue themeing for the monitor but all the visual micro windows need to change to WPF so they can inherit vs colors automatically and handle high dpi better.
« Last Edit: May 28th, 2018 at 1:17pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint