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 enum alignment { LEFT, RIGHT, CENTER }; error (Read 605 times)
BeagleBot
Junior Member
**
Offline


Posts: 30
Location: Netherlands
Joined: Jul 8th, 2015
enum alignment { LEFT, RIGHT, CENTER }; error
Jan 30th, 2026 at 5:57pm
Print Post  
Way do I have error by
enum alignment { LEFT, CENTER, RIGHT };

All de LEFT CENTER RIGHT have this error
see images
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Acuario
Senior Member
****
Offline


Posts: 261
Location: Spain
Joined: Aug 28th, 2015
Re: enum alignment { LEFT, RIGHT, CENTER }; error
Reply #1 - Jan 31st, 2026 at 4:49am
Print Post  
What is the signature of the function you are calling that shows the error?

I tried this and it is fine:

    enum alignment { LEFT, CENTER, RIGHT };

    void draw1(String s, int8_t al){}

    void test() {
        draw1("test", CENTER);
    }

Could also be related to the fact that in the US for some reason they spell centre CENTER and in English it is CENTRE (note ER->RE)
« Last Edit: Jan 31st, 2026 at 5:10am by Acuario »  
Back to top
 
IP Logged
 
BeagleBot
Junior Member
**
Offline


Posts: 30
Location: Netherlands
Joined: Jul 8th, 2015
Re: enum alignment { LEFT, RIGHT, CENTER }; error
Reply #2 - Jan 31st, 2026 at 8:56am
Print Post  
The code is compile good but vs2026 with visualmicro see this as an error
  

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


Posts: 2931
Joined: Feb 13th, 2019
Re: enum alignment { LEFT, RIGHT, CENTER }; error
Reply #3 - Jan 31st, 2026 at 10:29am
Print Post  
Thanks for the detail, can you attach a build output as a text file with the below settings enabled:-
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties


This will let us see the full configuration as the Intellisense errors will likely be specific to the board package and solution configuration.
  
Back to top
IP Logged
 
BeagleBot
Junior Member
**
Offline


Posts: 30
Location: Netherlands
Joined: Jul 8th, 2015
Re: enum alignment { LEFT, RIGHT, CENTER }; error
Reply #4 - Jan 31st, 2026 at 10:50am
Print Post  
Hire is the build log file from VS2026 vistalmicro.
  

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


Posts: 2931
Joined: Feb 13th, 2019
Re: enum alignment { LEFT, RIGHT, CENTER }; error
Reply #5 - Jan 31st, 2026 at 1:56pm
Print Post  
IF you amend your Enum to the below the Intellisense issue goes away:
typedef enum { LEFT, CENTER, RIGHT }  alignment;

We will try to work out why the issue is present although it compiles correctly.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint