Poco Lib Raspberry Pi

Sysprogs forums Forums VisualGDB Poco Lib Raspberry Pi

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13195
    Helmut
    Participant

    Im trying to use Poco Lib

    On the raspi is used apt-get install libpoco-dev to install precompiled binaries.

    Now i try a simple test:

    #include “Poco/Net/DNS.h”

     

    using Poco::Net::DNS;
    using Poco::Net::IPAddress;
    using Poco::Net::HostEntry;

    int main(int argc, char** argv) {
    const HostEntry& entry = DNS::hostByName(“www.appinf.com”);
    std::cout << “Canonical Name: ” << entry.name() << std::endl;

    }

    IntelliSense does not recognize the files, and when i try to compile i get some “file not found” and “undecalred identifyier” errors. In this forum i found a post where someone says

    Created a new project and sync all the system root headers and library

    but i dont know how to do this.

    Can anyone help?

    #13196
    Helmut
    Participant

    Im use MsBuild (i dont know if this matters)

    #13197
    Helmut
    Participant

    Ok, i figured out whats to do:

    1. Install the Poco precompiled files or compile them by your self
    2. Create a project, use msbuild
    3. In the projects VisualGDB settings, under MSBuild settings add the needed Informations
    • Include directories (e.g. /usr/include/Poco)
    • Library names (e.g. PocoNet)

     

    This compiles and IntelliSense works fine.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.