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) Visual micro wont compile a working project (Read 13592 times)
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Visual micro wont compile a working project
Dec 23rd, 2014 at 8:17pm
Print Post  
Hi guys.
I am using Arduino IDE and compiling with no problem.
When I open a working project with VS using visual micro, it won't compile.
I have set the correct board (MEGA) and set the path as described in the installation notes.
I get the following errors:

Compiling 'BSsensors_V31___mod' for 'Arduino Mega 2560 or Mega ADK'
BSsensors_V31___mod.ino:In file included from
WebServer.h:In member function 'int WebServer::read()'
WebServer.h:729: error: ambiguous overload for 'operator==' in '((WebServer*)this)->WebServer::m_client == 0'
WebServer.h:operator==(int, int) <built-in>
EthernetClient.h:operator==(const EthernetClient&)
w5100.cpp:In member function 'void W5100Class::init()'
w5100.cpp:35: error: no matching function for call to 'SPIClass::begin(int)'
SPI.h:begin()
w5100.cpp:37: error: no matching function for call to 'SPIClass::setClockDivider(int, int)'
SPI.h:setClockDivider(uint8_t)
w5100.cpp:38: error: no matching function for call to 'SPIClass::setDataMode(int, int)'
SPI.h:setDataMode(uint8_t)
w5100.cpp:In static member function 'static uint8_t W5100Class::write(uint16_t, uint8_t)'
w5100.cpp:147: error: 'SPI_CONTINUE' was not declared in this scope
w5100.cpp:150: error: no matching function for call to 'SPIClass::transfer(int, uint8_t&)'
SPI.h:transfer(byte)
w5100.cpp:In static member function 'static uint16_t W5100Class::write(uint16_t, const uint8_t*, uint16_t)'
w5100.cpp:168: error: 'SPI_CONTINUE' was not declared in this scope
w5100.cpp:171: error: no matching function for call to 'SPIClass::transfer(int, const unsigned char&)'
SPI.h:transfer(byte)
w5100.cpp:In static member function 'static uint8_t W5100Class::read(uint16_t)'
w5100.cpp:188: error: 'SPI_CONTINUE' was not declared in this scope
w5100.cpp:191: error: no matching function for call to 'SPIClass::transfer(int, int)'
SPI.h:transfer(byte)
w5100.cpp:In static member function 'static uint16_t W5100Class::read(uint16_t, uint8_t*, uint16_t)'
w5100.cpp:209: error: 'SPI_CONTINUE' was not declared in this scope
w5100.cpp:212: error: no matching function for call to 'SPIClass::transfer(int, int)'
SPI.h:transfer(byte)
WebSocket.cpp:In member function 'void WebSocket::listen()'
WebSocket.cpp:41: error: ambiguous overload for 'operator==' in '((WebSocket*)this)->WebSocket::client == 1'
WebSocket.cpp:operator==(int, int) <built-in>
EthernetClient.h:operator==(const EthernetClient&)
Error compiling



Please note that the same project is getting compiled without any problem with Arduino IDE.
Does anyone know what could cause this ?
Thank you
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #1 - Dec 23rd, 2014 at 8:21pm
Print Post  
Hi,

It might be that an spi.h is found in another library and that Visual Micro should ignore it.

What version of the arduino ide are you using?

Thanks
  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #2 - Dec 23rd, 2014 at 8:39pm
Print Post  
1.05
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #3 - Dec 23rd, 2014 at 8:44pm
Print Post  
Thanks,

Please switch on "tools>visual micro>verbose messages", then build. email the output to info [at] visualmicro.com

  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #4 - Dec 23rd, 2014 at 9:01pm
Print Post  
I sent the mail
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #5 - Dec 23rd, 2014 at 9:03pm
Print Post  
Thank you yes I have it. Please also open the arduino ide, click "file>preferences>verbose compile" and send the output by email

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #6 - Dec 23rd, 2014 at 9:06pm
Print Post  
I forgot to ask you to click "Build>clean solution" in visual micro before compiling and emailing the output. This will give a full build so I can see where library.h sources are being found

Thanks
  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #7 - Dec 23rd, 2014 at 9:14pm
Print Post  
Done
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #8 - Dec 23rd, 2014 at 9:24pm
Print Post  
Thanks I have the verbose output from visual micro but I am still waiting for the output from the arduino ide as requested in prev msg
  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #9 - Dec 23rd, 2014 at 9:41pm
Print Post  
I send you both.. please check again
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #10 - Dec 23rd, 2014 at 9:54pm
Print Post  
The subjects confused me. Now I see we have a full arduino ide output but the visual micro output is not a full output

1. Please switch on (tick) "Tools>Visual Micro>Verbose Messages"
2. The click "Build>Clean Solution"
3. The build

Thanks
  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #11 - Dec 23rd, 2014 at 10:06pm
Print Post  
Well. I sent once again - hope it is ok now
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #12 - Dec 23rd, 2014 at 10:34pm
Print Post  
Yes it's good thank you. Wow the code produces a lot of warnings in both Ide's Smiley

I think I see something strange.

Visual Micro can compile both arduino 1.0 and 1.5 format libraries. In your 1.0.5 install you have a library with both 1.0 and 1.5 format. 

For example Visual Micro compiles "C:\Program Files (x86)\Arduino\libraries\Ethernet\src\EthernetClient.cpp" but arduino compiles the older format "C:\Program Files (x86)\Arduino\libraries\Ethernet\EthernetClient.cpp". Notice new format arduino lib code is under the src folder.

I have checked with my arduino 1.0.5 and it does not have a new format Ethernet library in the src folder.

So my question is to see if arduino has issued a new 1.5 release with the \src lib folder. I will download and test. Or did you install 1.5 then drop back to 1.0.5 in "C:\Program Files (x86)\Arduino?

I also think it makes sense if visual micro is changed to give 1.0 lib format priority in 1.0 app when both formats are found.




  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #13 - Dec 23rd, 2014 at 10:44pm
Print Post  
This code was not originally written by me on this PC (no wonder so may warnings  Wink ) so I had to install 1.05 on my PC.
I'm not sure but I think you got it right.
I might installed 1.5 and then dropped the 1.05.

I'll try to find a clean 1.05 installation on the web and give it a try.. do you know where can I find one ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #14 - Dec 23rd, 2014 at 10:50pm
Print Post  
Yes uninstall 1.0.5 or delete/rename the folder if it was installed using a zip. If you run the uninstall then check after to make sure it has all been removed from the "program files( x86)/arduino" folder.

The arduino windows installer installs usb driver but other than that the zip always has everything in it

Get downloads from here. 1.0.6 is the current release in theory it is the same as 1.0.5.

http://arduino.cc/en/main/software

the version numbers are confusing don't be confused with 1.5.x versions

if you do want a previous release then find it here

http://arduino.cc/en/Main/OldSoftwareReleases
« Last Edit: Dec 23rd, 2014 at 10:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #15 - Dec 23rd, 2014 at 11:27pm
Print Post  
I installed a clean 1.0.5 and added some necessary libraries.
Again Arduino IDE compiles without errors ans VM is not compiling.
Iv'e sent you both logs.. please check
Thank you
  
Back to top
 
IP Logged
 
Yair Yakov
Newbies
*
Offline


Posts: 9
Joined: Dec 23rd, 2014
Re: Visual micro wont compile a working project
Reply #16 - Dec 23rd, 2014 at 11:44pm
Print Post  
Got it...
I had multiple base64.h files
I took the one that Arduino used and put it inside base64 folder and deleted from Webserver folder
now it compiles !!

Thank you man !
« Last Edit: Dec 23rd, 2014 at 11:45pm by Yair Yakov »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual micro wont compile a working project
Reply #17 - Dec 30th, 2014 at 3:15pm
Print Post  
Thanks for the update! Sorry I have had so many people asking for help or advise that I didn't read your message properly.

Can you please confirm that confirm what this issue was

You had a library with a base64.h and it conflicted with one from the arduino core?

Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint