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 ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes (Read 4832 times)
Red Baron
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Jan 18th, 2016 at 7:31pm
Print Post  
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
« Last Edit: Jan 18th, 2016 at 7:43pm by Red Baron »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #1 - Jan 18th, 2016 at 7:41pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #2 - Jan 18th, 2016 at 10:27pm
Print Post  
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
Select All
#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
Member
***
Offline


Posts: 106
Location: Germany
Joined: Jul 29th, 2015
Re: ESP8266/Visual Studio 2012: Problem with _EXFUN/Function Prototypes
Reply #3 - Jan 20th, 2016 at 3:25am
Print Post  
Works fine for me!

Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint