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 Too many arguments in function call sin() (Read 4149 times)
MadHattan
Newbies
*
Offline


Posts: 3
Location: Manhattan Kansas
Joined: Sep 10th, 2014
Too many arguments in function call sin()
Mar 8th, 2017 at 2:47pm
Print Post  
I have this strange annoying behavior that I am seeing in Visual Studio 2017 Roslyn but I also saw this behavior using Visual Studio 2015 Roslyn and older versions of Visual Micro.
 
Roslyn in Visual Studio 2017 reports too many arguments in function call sin(), but the code compiles just fine.  Other math.h functions are doing this too such as cos() sqrt() atan2().
   
IDE: Visual Studio 2017 15.0.0-RTW+26228.4
Arduino extension for Visual Studio 1.0
IDE: Visual Micro 1702.25.0
Board: Adafruit Feather M0
Arduino IDE: none
   
NavController.cpp
     sin(lat1); 
     //Roslyn in Visual Studio 2017 reports too many arguments in function call sin()

math.h
     extern double sin _PARAMS((double));
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12070
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Too many arguments in function call sin()
Reply #1 - Mar 12th, 2017 at 1:57pm
Print Post  
Sorry for the delay

The vs intellisense is not perfect however we can add re-defines that only affect intellisense. I will try to add something to the next release but you can do it yourself in the meantime. 

Extending visual studio intellisense without breaking compile

  
Back to top
WWW  
IP Logged
 
MadHattan
Newbies
*
Offline


Posts: 3
Location: Manhattan Kansas
Joined: Sep 10th, 2014
Re: Too many arguments in function call sin()
Reply #2 - Mar 13th, 2017 at 6:16pm
Print Post  
Thanks Tim!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint