Cannot find -lQt5Networkd

  • Hi, I have a problem with network library.
    Can help me!

    I´m not found problem!

  • do not use

    LIBS += -lQt5Networkd


    QT += network

  • @VRonin
    QT += core
    QT += network
    QT -= gui

    CONFIG += c++11

    TARGET = RpkX_ConsoleTester
    CONFIG += console
    CONFIG -= app_bundle

    TEMPLATE = app

    SOURCES += main.cpp

    Is my code in .pro. I use QT += core and QT += network, are wrong?

  • Looks fine.

    • What Qt version are you using?
    • on which compiler?
    • on which OS?
    • did you build it yourself or downloaded the binary?

  • @VRonin
    I use a QTCreator 5.6, on Windows10.
    Yes I did it.

    Look my build & run configurations, I think that problem are on compiler0_1473078344557_erro1.PNG

  • Yes I did it.

    You did what, sorry?

    Looks like your linker can't find the library files.

    What compiler are you using? MSVC or MinGW?

  • @VRonin
    I use a MinGW.
    I did the binary :D

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you build Qt for both debug and release ?

  • Did you try compiling from command line instead on Qt Creator (I'm trying to understand if it's a problem with Qt Creator configuration or you are really missing the libraries)?

    You need to call qtenv2.bat from your Qt bin directory to set up the environment

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.