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 Very strange compile problem (Read 2887 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Very strange compile problem
Feb 10th, 2016 at 6:51am
Print Post  
I submitted a complex compile problem last night and tonight I distilled it down to a single very strange problem. 

In the file ClassA.h, uncomment line 83 (see comment) and the compile fails with 2 errors and 25 warnings. Comment out that line and it compiles and executes just fine. 

Note that the array in question is sized for 18 integers, but it only allows 16 to be defined.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Very strange compile problem
Reply #1 - Feb 10th, 2016 at 2:08pm
Print Post  
Hi Bob,

Does it fail in the arduino ide?
  
Back to top
WWW  
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Very strange compile problem
Reply #2 - Feb 10th, 2016 at 2:28pm
Print Post  
Yes. I get the same results in the Arduino IDE. It appears to be some issue with the compiler and I notice that the "commands[18]" array only allows 16 members. It is the 17th member that causes the failure and the failure is almost catastrophic. The two error messages ("10:7 error: this is the insn" and "10:7: error: unable to find a register to spill in class "POINTER_REGS") are quite arcane and don't tell me anything about my code. They suggest some sort of failure in the compiler itself. And the warning messages (all 25 of them) do not give me any useful information about my code.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Very strange compile problem
Reply #3 - Feb 10th, 2016 at 2:29pm
Print Post  
Okay the best place to get standard syntax questions answered is the arduino.cc forum

I will look at your other report later
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint