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
Normal Topic ESP8266 v3 Core: Working code from Arduino IDE not compiling in VS2022 (Read 1094 times)
Martin_
Newbies
*
Offline


Posts: 2
Joined: Feb 15th, 2023
ESP8266 v3 Core: Working code from Arduino IDE not compiling in VS2022
Feb 15th, 2023 at 4:41pm
Print Post  
Hi,
I can't compile my working code from Arduino IDE 1.8. In VS2022.
Logs and sketch attached.

br Martin
« Last Edit: Feb 15th, 2023 at 11:07pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: Working code from Arduino IDE not compiling in VS2022
Reply #1 - Feb 15th, 2023 at 5:13pm
Print Post  
Thanks for the report.

If you add a Local Board.txt to your project (vMicro > Add Code > Add Local board.txt), and paste in the below two lines, this should then allow the project to compile:
recipe.hooks.prebuild.2.pattern=
build.opt.flags=


If any additional compiler switches need adding, this can be done from the F4 Project Properties screen, under Configuration Extra Flags.

This issue was initially reported on the below thread and is related to changes in the ESP8266 board package which are not supported by vMicro, however we do support more fine grained control over what compiler flags are set in each project, which removes the need for the added ESP8266 Globals.h functionality:
https://www.visualmicro.com/forums/YaBB.pl?num=1673119446
  
Back to top
IP Logged
 
Martin_
Newbies
*
Offline


Posts: 2
Joined: Feb 15th, 2023
Re: Working code from Arduino IDE not compiling in VS2022
Reply #2 - Feb 15th, 2023 at 6:09pm
Print Post  
it's alive  Cheesy

Thank you for fast solution
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint