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 Compile error with httpclient library (Read 7261 times)
Simon 768
Newbies
*
Offline


Posts: 2
Joined: Nov 8th, 2012
Compile error with httpclient library
Nov 26th, 2013 at 8:04pm
Print Post  
Hi,

I am trying to use the httpclient library from here: https://github.com/amcewen/HttpClient.git

I am using Arduino1.5.4 and Visual Micro and a Mega 2560.

When I try to compile the SimpleHttpExample sketch that comes with the library in Visual Micro, I get a big list of compile errors - paste below.

When I compile in Arduino IDE, it works fine.

Having done some googling, i found that the structure of Arduino libraries is changing around v1.5 onwards. Could this be the cause of my problems?

Any other suggestions on how to get round it would be gratefully received.

If there is anything else in my setup that I should check, please just let me know.


Compiling 'SimpleHttpExample' for 'Arduino Mega 2560 or Mega ADK'
SimpleHttpExample.ino : : In function 'void loop()':
SimpleHttpExample.ino : HttpClient(EthernetClient&)'
HttpClient.h : HttpClient()
HttpClient.h : HttpClient(const HttpClient&)
SimpleHttpExample.ino : get(const char [11], const char [2])'
HttpClient.h : get(String&)
HttpClient.h : get(const char*)
SimpleHttpExample.ino : 'class HttpClient' has no member named 'responseStatusCode'
SimpleHttpExample.ino : 'class HttpClient' has no member named 'skipResponseHeaders'
SimpleHttpExample.ino : 'class HttpClient' has no member named 'contentLength'
SimpleHttpExample.ino : 'class HttpClient' has no member named 'connected'
SimpleHttpExample.ino : 'class HttpClient' has no member named 'stop'
Error compiling
  
Back to top
 
IP Logged
 
Dennis Mabrey
Junior Member
**
Offline


Posts: 19
Location: Branchburg, NJ
Joined: Oct 22nd, 2013
Re: Compile error with httpclient library
Reply #1 - Nov 27th, 2013 at 12:26am
Print Post  
I tried it out just now and had no problems compiling it for either 1.05 or 1.5.4.   I set the board to Mega as well.

Are you using Visual Studio?  If so which version?    I am using Atmel Studio 6.


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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error with httpclient library
Reply #2 - Nov 27th, 2013 at 1:19pm
Print Post  
Hi,

The change of structure for Arduino 1.5.x is supported and is the reason why in Visual Micro you specify Arduino 1.0.x and/or Arduino 1.5.x location. You should be using the Arduino 1.5.x option for Arduino 1.5.4. To be honest we have not made an official release for 1.5.4 yet so I recommend 1.5.3 which has little difference. We will test 1.5.4 for the next release due in a week or two.

Can you confirm where you have placed the http libraries and what the Sketch Book Folder is set to in your Visual Micro app options.

Thanks
  
Back to top
IP Logged
 
Simon 768
Newbies
*
Offline


Posts: 2
Joined: Nov 8th, 2012
Re: Compile error with httpclient library
Reply #3 - Nov 27th, 2013 at 1:55pm
Print Post  
Thanks for the replies.

I am using Visual Studio 2010

The Arduino IDE is installed here: D:\<my_name>\ArduinoIDEs\arduino-1.5.4

My libraries are all in this folder: D:\<my_name>\ArduinoIDEs\arduino-1.5.4\libraries

And in Visual Micro options, for Arduino 1.5.x, the following folders are specified:

IDE location: D:\<my_name>\ArduinoIDEs\arduino-1.5.4\libraries

Sketchbook location: d:\arduino

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


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error with httpclient library
Reply #4 - Nov 27th, 2013 at 2:29pm
Print Post  
Hi,

I think the problem will be a conflicting library. 

I recommend a clean install of Arduino then add the http library to "d:\arduino\libraries" which is a fully supported alternative location for user libraries.

I also recommend using 1.0.5 or 1.5.3. We have not fully tested with 1.5.4 yet which is still an Arduino beta. 

Our basic tests with 1.5.4 look okay but I think some tweaks are required for the next VM release. This is not the cause of your problem but once you resolve this issue you might like to avoid more issues Smiley

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