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 sprintf and some data types showing as errors (Read 1461 times)
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
sprintf and some data types showing as errors
Aug 16th, 2023 at 7:21pm
Print Post  
Since a VM upgrade (sorry, can't recall which), VS20XX shows sprintf and some types as errors, like this:

E0020      identifier "sprintf" is undefined

E0757      variable "uint32_t" is not a type name

In a large program, I have 633 errors, but it compiles and runs fine, as before.

It's more annoying than work affecting, but is there a way to fix it (I tried including stdio.h and math.h)?


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: sprintf and some data types showing as errors
Reply #1 - Aug 16th, 2023 at 7:35pm
Print Post  
We need to know if you are using the old or the new project system. Does your project show in the solution explorer with the text "(Arduino)". For example:- "MyProject (Arduino)"

  
Back to top
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Re: sprintf and some data types showing as errors
Reply #2 - Aug 16th, 2023 at 7:40pm
Print Post  
Hi Tim

It just shows as the project name under the solution. No "(Arduino").

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: sprintf and some data types showing as errors
Reply #3 - Aug 16th, 2023 at 8:17pm
Print Post  
Thanks, when you create questions in this forum please follow the guide in yellow at the top of the page.It avoids us needing to ask lots of questions.

Assuming you are on a recent version of Visual Micro, there is "Convert" option on the toolbar and also on the vMicro menu. That will convert your .vcxproj to the newer intellisense engine.

The old system could easily produce those false errors. It was often depedant on the specific platform version and also used microsoft VC++ project format that did not understand some underlying GCC. The newer format uses the new Microsoft project format for Embedded systems which unserstands GCC.

Reminder: don't forget the requested output when creating threads in thi forum
« Last Edit: Aug 16th, 2023 at 8:18pm by Tim@Visual Micro »  
Back to top
IP Logged
 
davidcoward
Junior Member
**
Offline


Posts: 56
Joined: Oct 5th, 2012
Re: sprintf and some data types showing as errors
Reply #4 - Aug 17th, 2023 at 1:03am
Print Post  
Thanks! All good now.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint