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
Hot Topic (More than 8 Replies) Release 1606.8 introducing compile errors (Read 6695 times)
ChillieJantjie
Newbies
*
Offline


Posts: 6
Location: Cape Town, South Africa
Joined: Jun 10th, 2016
Release 1606.8 introducing compile errors
Jun 10th, 2016 at 4:33pm
Print Post  
Hi, I have upgraded yesterday eve to the latest release in VS2015 for Vmicro. I also use Arduino IDE 1.6.9.

The code compiled perfect before the update but after the upgrade I get the following :-
"Compiling debug version of 'HHm_HeatManagement' for 'Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)'
HHm_HeatManagement.cpp.o:In function `setup
HHm_HeatManagement.ino:undefined reference to `SPIClass  begin()
HHm_HeatManagement.ino:undefined reference to `SPIClass  setClockDivider(unsigned char)
HHm_HeatManagement.ino:undefined reference to `SPIClass  setDataMode(unsigned char)
collect2.exe*:error: ld returned 1 exit status

Error compiling for board Arduino/Genuino Mega w/ ATmega2560 (Mega 2560)"

If I copy the code to the Arduino IDE it compiles perfect and runs as it did before. But not in Visual Micro anymore.

I have tried all options mentioned in the other new posts of today and yesterday that relates to this problem but could not yet resolve it.

Any suggestions? I have not worked on the code since yesterday and can also not understand why it is copiling and uploading fine with Arduino IDE but no longer in Visual Micro?

Thanx.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Release 1606.8 introducing compile errors
Reply #1 - Jun 10th, 2016 at 6:56pm
Print Post  
Hi,

Please zip and email your project/code to info[at]visualmicro.com

Thanks
  
Back to top
IP Logged
 
ChillieJantjie
Newbies
*
Offline


Posts: 6
Location: Cape Town, South Africa
Joined: Jun 10th, 2016
Re: Release 1606.8 introducing compile errors
Reply #2 - Jun 11th, 2016 at 8:50am
Print Post  
Hi
Thank you for the offer to assist, MUCH appreciated.

Have just emailed you the .zip file as requested.

Is there a way to revert back to the previous release (1606.6) as I am under pressure to finish this project?

Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Release 1606.8 introducing compile errors
Reply #3 - Jun 11th, 2016 at 12:46pm
Print Post  
Thanks for the zip. Actually the last version just included intellisense fixes not build related.

Your project builds okay for me so I can't see a reason why it can't find the SPI stuff (your error).

Please switch on vMicro>Verbose then click Build>Clean then click Build

Please email or post the output.


...

By the way a minor note but you might hit run time errors (not compile error) because _outpinii and _outpinme are defined as [16] but you appear to reference 17 because arrays are zero based (0-15 = 16). I might be wrong so ignore me Smiley

:HMP._outpinii[16] = true
HHm_HeatManagement.ino:421:17: warning: array subscript is above array bounds [-Warray-bounds]
:HMP._outpinme[16] = true
« Last Edit: Jun 11th, 2016 at 12:47pm by Tim@Visual Micro »  
Back to top
IP Logged
 
ChillieJantjie
Newbies
*
Offline


Posts: 6
Location: Cape Town, South Africa
Joined: Jun 10th, 2016
Re: Release 1606.8 introducing compile errors
Reply #4 - Jun 11th, 2016 at 1:31pm
Print Post  
Thank you for the effort and advise on the array's. Will fix it.

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Release 1606.8 introducing compile errors
Reply #5 - Jun 11th, 2016 at 2:19pm
Print Post  
Hi,

I need to see the full output. I removed the post with your output because it was only part of it.

Can you please save the output to a .txt file using notepad then use the Button at the bottom to upload and post the file.

Thanks
  
Back to top
IP Logged
 
ChillieJantjie
Newbies
*
Offline


Posts: 6
Location: Cape Town, South Africa
Joined: Jun 10th, 2016
Re: Release 1606.8 introducing compile errors
Reply #6 - Jun 11th, 2016 at 6:57pm
Print Post  
Hi
As requested. I hope this is what you were looking for? If not please advise what else I can do to get you exactly what you are looking for. 

Sorry but I am new to C++ and Visual Studio, a month ago I have not seen, leave alone write, one line of C++ code. Trying my best and really appreciate your efforts in helping me.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Release 1606.8 introducing compile errors
Reply #7 - Jun 11th, 2016 at 7:09pm
Print Post  
Hi,

I think the problem is you have installed a library called SPI that is overriding the one that Arduino produces.

Please move, delete or rename the following folder then re-start the Ide or click Rescan in the 'Micro Explorer'

C:\Users\Jan\Documents\Arduino\libraries\SPI

A recent change is to allow user libraries to override the genuine arduino libraries. Can you tell me what the spi folder has in it? or zip and attach it. I would like to know why the arduino ide is ignoring it.

Thanks
« Last Edit: Jun 11th, 2016 at 7:11pm by Tim@Visual Micro »  
Back to top
IP Logged
 
ChillieJantjie
Newbies
*
Offline


Posts: 6
Location: Cape Town, South Africa
Joined: Jun 10th, 2016
Re: Release 1606.8 introducing compile errors
Reply #8 - Jun 12th, 2016 at 7:48am
Print Post  
Hi

That did it! 
Thank you very much for your patience and help offered. I removed the SPI folder from the Arduino\Libraries folder and it is working 100% like it use to.

The folder is attached and if you need anything else, please let me know.

Once again, thanks for the excellent support.
Jan
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Release 1606.8 introducing compile errors
Reply #9 - Jun 12th, 2016 at 1:32pm
Print Post  
Thanks. That explains it. 

The .cpp source was missing from the documents\arduino\SPI user library. So it was invalid. 

In theory the Arduino Ide should also have also attempted to use it so I will look at why they ignore it.

Thanks for the timely responses
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint