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
Hot Topic (More than 8 Replies) missing references to stdarg.h and stddef.h (Read 10500 times)
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
missing references to stdarg.h and stddef.h
Jan 28th, 2018 at 10:52am
Print Post  
Hi to everyone... I'm a newbie here.
I'm getting troubles importing a project for Teensy 3.2 in VisualMicro.
The same happens when opening a new empty project for that board.
In the errors windows appear several error notification like:
"E1696 can't open error code "stdarg.h" in original file"
"E1696 can't open error code "stddef.h" in original file"

In fact the files are missing in project references and I I don't know how to add them.  Cry
I can find these files in the following Arduino subdir:
...\Arduino\hardware\tools\arm\lib\gcc\arm-none-eabi\5.4.1\include

How can I resolve ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #1 - Jan 28th, 2018 at 3:01pm
Print Post  
Hi,

This is an intellisense problem, when you build and upload it should be okay?

You can not add references manually but we can look at how to establish file paths for intellisense.

Which teensy board?
  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #2 - Jan 28th, 2018 at 4:20pm
Print Post  
When installed, Arduino IDE, Teensyduino and Visualmicro didn't get any trouble. A further VS update followed the installation.
The open project is for Teensy 3.2. It generates 19 errors due to missing references. Same problem arises switching to Teensy 3.5 as well.
Much less errors with Arduino DUE (6 errors).
No errors only with AVR Arduino boards like UNO or MEGA.
I noticed that "User hardware folder" in Visual Mirco explorer is incorrecly set but I can't fix it... how can I do ?
Thank you.

Following are my VS installation version infos:

Microsoft Visual Studio Community 2017 
Versione 15.5.5
VisualStudio.15.Release/15.5.5+27130.2026
Microsoft .NET Framework
Versione 4.7.02556
Edizione installata: Community
« Last Edit: Jan 28th, 2018 at 4:23pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #3 - Jan 28th, 2018 at 4:23pm
Print Post  
Can you build and upload?
  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #4 - Jan 28th, 2018 at 4:32pm
Print Post  
Just tried... the empty project incredibly compiles and uploads!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #5 - Jan 28th, 2018 at 4:33pm
Print Post  
Yes intellisense is different and also is updated after various events such as compile.

What intellisense errors do you see now?

Can you type Serial. then click it and press F12. Does it take you to teensy usb source?

ps: Ignore invalid folders there are some properties mentioned in the output that are not used for some boards
« Last Edit: Jan 28th, 2018 at 4:34pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #6 - Jan 28th, 2018 at 4:34pm
Print Post  
A side inconvenient is that int32_t type is not defined... I can't use it in my project!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #7 - Jan 28th, 2018 at 4:35pm
Print Post  
Please be clear in your reports about intellisense OR build error?? This is very important.
« Last Edit: Jan 28th, 2018 at 4:36pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #8 - Jan 28th, 2018 at 4:36pm
Print Post  
Tim@Visual Micro wrote on Jan 28th, 2018 at 4:33pm:
What intellisense errors do you see now?



Gravità      Codice      Descrizione      Progetto      File      Riga      Stato eliminazione
Errore (attivo)      E0311      impossibile eseguire l'overload di funzioni distinte solo in base al tipo restituito      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\WProgram.h      83      
Errore (attivo)      E1696      impossibile aprire il codice errore "utility" del file origine      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\wiring.h      68      
Errore (attivo)      E1696      impossibile aprire il codice errore "type_traits" del file origine      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\wiring.h      44      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\_types.h      159      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\types.h      62      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\reent.h      14      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\cdefs.h      45      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\string.h      17      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\stdlib.h      16      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\stdio.h      36      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\inttypes.h      21      
Errore (attivo)      E1696      impossibile aprire il codice errore "stddef.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\usb_desc.h      40      
Errore (attivo)      E1696      impossibile aprire il codice errore "stdarg.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\stdio.h      50      
Errore (attivo)      E1696      impossibile aprire il codice errore "stdarg.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\stdio.h      40      
Errore (attivo)      E1696      impossibile aprire il codice errore "stdarg.h" del file origine      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\Print.h      36      
Errore (attivo)      E1696      impossibile aprire il codice errore "algorithm" del file origine      test      c:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\wiring.h      67      
Errore (attivo)      E0020      identificatore "wint_t" non definito      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\_types.h      168      
Errore (attivo)      E0035      direttiva #error: "Unable to determine type definition of intptr_t"      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\_intsup.h      82      
Errore (attivo)      E0035      direttiva #error: "Unable to determine type definition of int32_t"      test      c:\Program Files (x86)\Arduino\hardware\tools\arm\arm-none-eabi\include\sys\_intsup.h      89      
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #9 - Jan 28th, 2018 at 4:55pm
Print Post  
Okay these are just intellisense errors and can be ignored. 

You can change the combo box about the error list to "Open Documents" and/or change the other combo box to "Build Only"

You can also ignore red squiggles in code which are intellisense errors

If it builds and uploads then the basic system is working OK

I will try to replicate the intellisense issues and fix in few days.

  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #10 - Jan 28th, 2018 at 4:58pm
Print Post  
I'm sorry for the unclear reports...
Anyway the problem seems to be not critical: I get only many intellisense errors while build process goes with no problems.
I hope it will be fixed by future updates.
Thanks again for your attention.
  
Back to top
 
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #11 - Jan 28th, 2018 at 5:00pm
Print Post  
Tim@Visual Micro wrote on Jan 28th, 2018 at 4:55pm:
Okay these are just intellisense errors and can be ignored.

Tim@Visual Micro wrote on Jan 28th, 2018 at 4:55pm:
If it builds and uploads then the basic system is working OK

Yes, that's the point. Thanks again.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: missing references to stdarg.h and stddef.h
Reply #12 - Jan 28th, 2018 at 6:05pm
Print Post  
Thanks

which version of teensyduino have you installed?
Which version of arduino ide?
  
Back to top
IP Logged
 
Fabrz71
Newbies
*
Offline


Posts: 9
Location: Bergamo, Italy
Joined: Jan 28th, 2018
Re: missing references to stdarg.h and stddef.h
Reply #13 - Jan 28th, 2018 at 9:55pm
Print Post  
Arduino IDE 1.8.5
Teensyduino 1.41
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint