pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.33k stars 2.15k forks source link

Poco 1.13.1 SocketAddress POCO_HAS_UNIX_SOCKET #4449

Closed micheleselea closed 7 months ago

micheleselea commented 7 months ago

If you have not defined POCO_HAS_UNIX_SOCKET there're still reference to newLocal

void SocketAddress::init(const std::string& hostAndPort)
{
    poco_assert (!hostAndPort.empty());

    if (isUnixLocal(hostAndPort))
    {
        newLocal(hostAndPort);
        return;
    }
micheleselea commented 7 months ago

on windows visual studio 2022, problem solved using c++17 but I think think that ::init function is missing a define