Overview
Features
Download
Documentation
Community
Add-Ons & Services

Compile error in Poco/Net/X509Certificate.h

Please post support and help requests here.

Compile error in Poco/Net/X509Certificate.h

Postby HemDutt » 24 Jun 2014, 14:38

Hi,

I am using Poco for first time. I downloaded poco-1.4.6p4-all and built it for Mac Os 10.8 as per the instructions README
during configure I opted for ./configure --omit=Data/ODBC,Data/MySQL

I tried with HTTP requests and it worked fine but when I replaced Poco/Net/HTTPClientSession.h with Poco/Net/HTTPSClientSession.h it gave compile time error in Poco/Net/X509Certificate.h for functions :
bool verify(const std::string& hostName) const; and
static bool verify(const Poco::Crypto::X509Certificate& cert, const std::string& hostName);

Please tell me what am I doing wrong..

Regards,
Hem Dutt
HemDutt
 
Posts: 11
Joined: 24 Jun 2014, 14:21

Re: Compile error in Poco/Net/X509Certificate.h

Postby HemDutt » 25 Jun 2014, 09:49

It seems like
bool verify(const std::string& hostName) const; and
static bool verify(const Poco::Crypto::X509Certificate& cert, const std::string& hostName);

are conflicting with Macro in AssertMacros.h in use/include
#ifndef verify
#define verify(assertion) __Verify(assertion)
#endif


what is the solution?
HemDutt
 
Posts: 11
Joined: 24 Jun 2014, 14:21

Re: Compile error in Poco/Net/X509Certificate.h (Fixed)

Postby HemDutt » 25 Jun 2014, 10:50

I was using Poco in Cocoa application and there

bool verify(const std::string& hostName) const; and
static bool verify(const Poco::Crypto::X509Certificate& cert, const std::string& hostName);

was conflicting with Macro in AssertMacros.h in use/include
#ifndef verify
#define verify(assertion) __Verify(assertion)
#endif

Conflict resolved when I used Poco in c++/console application.
HemDutt
 
Posts: 11
Joined: 24 Jun 2014, 14:21


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron