I have the following code that works on Linux but doesn’t work on Windows(VS2008)
URI(): Poco::URI::URI();
I get the following errors:
error C2039: '{ctor}' : is not a member of 'Poco::URI'
error C2437: 'URI': already initialized
I made the following changes to:
URI(){ Poco::URI::URI(); }
Do the two lines of code mean the same? And why doesn’t the first one line of code don’t work on Windows?
edit:
I am using the Poco Library, so this is code I have:
#include Poco/URI.h
class URI : public Poco::URI
{
public:
URI(): Poco::URI::URI(){}
};
Poco/URI.h
namespace Poco {
class URI
{
public:
URI::URI():
_port(0){}
private:
unsigned short _port;
};
The right way to do the following:
I was including a namespace
URIthat did not exist.Also:
Poco::URI::URI(){} // works when using gcc compiler but not on a windows compiler