Strange ofxHttpUtils behaivor

Hello All,

I had an existing project that I wanted to read an RSS reader too.

When I created an empty project included and ofxXmlSettings, ofxHttpUtils, and ofxThread everything worked fine and dandy ! But when I tried to include it into my larger app I receive some strange errors using the exact same files :

c:\users\helios\documents\of_prerelease_v007_vs2010\addons\ofxhttputils\src\ofxhttputils.h(128): error C2248: ‘Poco::Net::HTTPBasicCredentials::operator =’ : cannot access private member declared in class ‘Poco::Net::HTTPBasicCredentials’
2> c:\users\helios\documents\of_prerelease_v007_vs2010\libs\poco\include\poco\net\httpbasiccredentials.h(94) : see declaration of ‘Poco::Net::HTTPBasicCredentials::operator =’
2> c:\users\helios\documents\of_prerelease_v007_vs2010\libs\poco\include\poco\net\httpbasiccredentials.h(57) : see declaration of ‘Poco::Net::HTTPBasicCredentials’
2> This diagnostic occurred in the compiler generated function ‘ofxHttpUtils &ofxHttpUtils::operator =(const ofxHttpUtils &)’
2>c:\users\helios\documents\of_prerelease_v007_vs2010\addons\ofxhttputils\src\ofxhttputils.h(128): error C2248: ‘Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials’ : cannot access private member declared in class ‘Poco::Net::HTTPBasicCredentials’
2> c:\users\helios\documents\of_prerelease_v007_vs2010\libs\poco\include\poco\net\httpbasiccredentials.h(93) : see declaration of ‘Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials’
2> c:\users\helios\documents\of_prerelease_v007_vs2010\libs\poco\include\poco\net\httpbasiccredentials.h(57) : see declaration of ‘Poco::Net::HTTPBasicCredentials’
2> This diagnostic occurred in the compiler generated function ‘ofxHttpUtils &ofxHttpUtils::operator =(const ofxHttpUtils &)’

I was just wondering what could be causing this issue? It looks like it’s trying to access members of Poco that are private, but the same addon works in my emptyExample ! In my larger app I’m using SoftKinetic’s IISU 3D Gesture library… so maybe there is a conflict somewhere? I sent them an email asking if they use Poco anywhere, but no response yet.

I’d like to be able to incorporate this in my main app. Worst case scenario I suppose I could have a seperate app retrieve the RSS feed and then pass it to my main app via a local connection but that is not ideal :smiley: Unfortunately I cannot post the entire project.

This is on windows 7 , 007 release build from the main OF site , any thoughts would be great !

Is there a reason you are not using ofURLFileLoader built into the core?

I was having some issues using ofURLFileLoader, but the ofxCurl addon by roxlu just worked. I have only tested on osx lion, but there is a windows build in there as well

https://github.com/roxlu/ofxCurl

I didn’t know about the core ofURLFileLoader :smiley:

Your post along with Roxlu’s ever helpful slideshare ( http://www.slideshare.net/roxlu/openframworks-007-utils ) fixed my problem.

Thanks !

Ben, your post made my day… i was starting to look to this issue and the rouxlu link let me do it in less than a day…