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 Intellisence bug ? (Read 1932 times)
xmen
Junior Member
**
Offline


Posts: 56
Joined: Aug 22nd, 2016
Intellisence bug ?
Aug 22nd, 2016 at 4:10pm
Print Post  
I have an array initialized by a local variable, and this the error I get. It compiles and uploads, all works fine but it keep appearing in error list.

Quote:
IntelliSense: expression must have a constant value


Code (C++)
Select All
short size = SomeClass::StaticMethod();
byte dataBytes[size];//shows red line below "size" 




Using VS 2012 with latest version I suppose ? I checked in about and it shows 1.0. But I reinstalled it 2 days ago.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisence bug ?
Reply #1 - Aug 22nd, 2016 at 8:58pm
Print Post  
Hi,

We rely on the microsoft c++ intellisense system. This might be an incompatibility with VC++ and gcc in which case you could redefine the intellisense def to prevent the error from showing.

The _MSC_VER variables can be used quite easily

http://www.visualmicro.com/page/Extending-Visual-Studio-Intellisense.aspx

In the future microsoft are already produucing cLang and other more gcc friendly intellisense systems so we will probably start using them some time soon.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint