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 New Project Startup Errors (Read 499 times)
Ronnie
Newbies
*
Offline


Posts: 6
Joined: Oct 29th, 2024
New Project Startup Errors
Nov 19th, 2024 at 12:14pm
Print Post  

I have been struggling with getting vmicro to work. I have to admit, I am a relatively new to Visual Studio user also, so the issues im experiencing may also have to do with my Visual Studio setup.

The issue I have is that whenever I start a new project, without adding a single line of code, i immediately get the below list of errors:

invalid second parameter type ("unsigned int") for literal operator; must be size_t in file mbed_retarget.h
more than one instance of overloaded function "fstat" has 'C' linkage in file mbed_retarget.h
more than one instance of overloaded function "stat" has 'C' linkage in file basic_string.h
invalid second parameter type ("unsigned int") for literal operator; must be size_t  in file basic_string.h (same message 3x)
first parameter of allocation function must be of type 'size_t' in file new (same message 6x)

Googling this has yielded no results.

Can anyone point me in the right direction, please?

Attached the full build report.

Thank you
  

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


Posts: 2505
Joined: Feb 13th, 2019
Re: New Project Startup Errors
Reply #1 - Nov 19th, 2024 at 12:56pm
Print Post  
Thanks for the report.

If you change the Solution Platform from ARM64 to ARM this should reduce the errors.

There are some boards which do not like the ARM64 configuration at all, so generally we recommend using ARM, and are looking at ways to improve this to avoid confusion in the future.
  
Back to top
IP Logged
 
Ronnie
Newbies
*
Offline


Posts: 6
Joined: Oct 29th, 2024
Re: New Project Startup Errors
Reply #2 - Nov 19th, 2024 at 1:14pm
Print Post  
Thank you, Simon!

That did indeed reduce the errors, by a lot, all except Error E0338 "more than one instance of overloaded function "fstat" has 'C' linkage" in File mbed_retarget.h on line 746 and 750. 

Only changed ARM64 to ARM as per your suggestion above.

Any suggestions to remove this error also?

Thanks for your help!
  
Back to top
 
IP Logged
 
Ronnie
Newbies
*
Offline


Posts: 6
Joined: Oct 29th, 2024
Re: New Project Startup Errors
Reply #3 - Nov 19th, 2024 at 7:43pm
Print Post  
Anyone?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: New Project Startup Errors
Reply #4 - Nov 19th, 2024 at 8:57pm
Print Post  
Currently it is simplest to just suppress this error code from appearing in Intellisense.

If you download the attached file, and place it in YourProjectFolder\_vm\vs-intellisense-fix-pre.h, and then reopen your project it should prevent the error from appearing.
« Last Edit: Nov 19th, 2024 at 8:58pm by Simon@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
Ronnie
Newbies
*
Offline


Posts: 6
Joined: Oct 29th, 2024
Re: New Project Startup Errors
Reply #5 - Nov 20th, 2024 at 8:57am
Print Post  
Thank you, Simon. That did the trick!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: New Project Startup Errors
Reply #6 - Nov 20th, 2024 at 9:38am
Print Post  
Glad to help, we have updated the documentation about Extending Intellisense below with this example:
https://www.visualmicro.com/page/Extending-Visual-Studio-Intellisense.aspx
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: New Project Startup Errors
Reply #7 - Dec 11th, 2024 at 9:26pm
Print Post  
Please install the latest release (2024.1211.0) from the top of the below board, this automatically ignores those errors, and has a new board.txt property to allow this list to be more easily extended (e.g. vm.intellisense.ignore-error-codes=338):
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint