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 VS2017, VM 2022.1128.1925, Arduino 1.8.19, Board ESP32 #pragmas? (Read 1044 times)
GeckospotNixie
Junior Member
**
Offline


Posts: 18
Location: East Coast
Joined: Mar 24th, 2013
VS2017, VM 2022.1128.1925, Arduino 1.8.19, Board ESP32 #pragmas?
Feb 18th, 2023 at 4:35pm
Print Post  
I know there are one or two post in this but I'm not able to help with the issue.

VS2017, VM 2022.1128.1925, Arduino 1.8.19, Board ESP32 Wrover Module

I get the following errors and for the life of me I cannot get passed the errors.
The only way it remove all #pragmas lines.

error: ignoring #pragma region WEB_PAGE [-Werror=unknown-pragmas]
   #pragma region WEB_PAGE
 
error: ignoring #pragma endregion  [-Werror=unknown-pragmas]
   #pragma endregion
cc1plus.exe*: some warnings being treated as errors

I have tried -Wno-error pragmas and put it in for C and C++ in the project property page no help.
Turned off all warnings no help.

And just a lot of other things no help.
I have spent like 6 hours on this.

Does anyone have any ideas?
I would like #pragmas to work I use to use it all the time.

Tom 
  
Back to top
 
IP Logged
 
GeckospotNixie
Junior Member
**
Offline


Posts: 18
Location: East Coast
Joined: Mar 24th, 2013
Re: VS2017, VM 2022.1128.1925, Arduino 1.8.19, Board ESP32 #pragmas?
Reply #1 - Feb 18th, 2023 at 6:26pm
Print Post  
Ok I was able to find something that worked.
Not the happies with it but will go with it.

So, TOOLS/OPTIONS/Visual Micro/General/compiler set ‘Warnings’ to False.
I was able to leave ‘Warnings for Core’ True and ‘Warnings for Libraries’ True

Now I'm able to compile with #pragmas

I'm not sure why I did not try these at first because I did know that they were there.
Oh well wasted a lot of time but some days that is the way it is.

If anyone has other information on this, I like to hear it.
Thank all
Tom
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12137
Location: United Kingdom
Joined: Apr 10th, 2010
Re: VS2017, VM 2022.1128.1925, Arduino 1.8.19, Board ESP32 #pragmas?
Reply #2 - Feb 18th, 2023 at 6:40pm
Print Post  
Good to hear you found a way around. When you post you need to follow the guide in yellow above to provide your config. This is because each board package provides it's own tool chain. Therefore we can't comment on the default behaviour without seeing the config.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint