Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes (Read 3318 times)
Red Baron
Junior Member
**
Offline



Posts: 76
Germany
ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Jan 18th, 2016 at 7:31pm
 
Hello,

VM seems to import wrong prototypes. Many prototypes of standard functions (e.g. sprintf(...)) are surrounded by a macro named _EXFUN. There is something going wrong with this macro: it expends to sprintf() with no paramters. Now Visual Studio (Intellisence?) grumbles "too many parameters".

There are a lot of defines to configure _EXFUN. I do not know how to fix it. Lips Sealed Can anybody help?

Kind rergards
Red Baron


Edit: My actual configuration is:
- Windows 10
- Visual Studio 2012, Update 5
- Arduino IDE 1.6.7
- ESP8266 Build-In 2.0.0
- Visual Micro 1.1601.11
Back to top
« Last Edit: Jan 18th, 2016 at 7:43pm by Red Baron »  

WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #1 - Jan 18th, 2016 at 7:41pm
 
Not sure. If possible please email your esp program to info[at]visualmicro.com so I can see the problem

Thanks
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10464
United Kingdom
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #2 - Jan 18th, 2016 at 10:27pm
 
Thanks for the example.

I think I have found the solution. I have added #define __STDC__ to the esp8266 intellisense list.

You can edit the vm config to test. To find the vm install folder look in "tools>options>visual micro>version>assembly"

Then edit the text file called "[visual micro program folder]\Micro Platforms\arduino16x\hardware\esp8266\intellisense code.h"

Add this line to the top of the file and save it.

Code:
#define __STDC__ 



In visual micro, clicking save on the project or building should refresh the intellisense, otherwise toggle the board selection with another board.

The code from the "intellisense code.h" is inserted into the "__vm\[project_name].vsarduino.h" file of each esp8266 project.

Does this make sense?
Back to top
 
WWW  
IP Logged
 
Red Baron
Junior Member
**
Offline



Posts: 76
Germany
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #3 - Jan 20th, 2016 at 3:25am
 
Works fine for me!

Thank you!
Back to top
 

WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print