Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Polish
  4. [Problem] Qt + ENet

[Problem] Qt + ENet

Scheduled Pinned Locked Moved Polish
2 Posts 1 Posters 1.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bimbol
    wrote on last edited by
    #1

    Witam,
    piszę aktualnie czat w ramach utrwalenia zdobytych wiadomości i do tego celu chciałem wykorzystać bibliotekę ENet, jednak otrzymuję masę błędów linkera. Dodam, że kompiluję to w QtCreator z użyciem kompilatora MSVS 2012.

    Plik Chat.pro:
    @#-------------------------------------------------

    Project created by QtCreator 2014-02-15T15:06:39

    #-------------------------------------------------

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = Chat
    TEMPLATE = app

    SOURCES += main.cpp
    chat.cpp

    HEADERS += chat.h

    LIBS += -LC:\Qt\enet -lwinmm
    LIBS += -LC:\Qt\enet -lws2_32
    LIBS += -LC:\Qt\enet -lenet64
    @

    Nagłówki pliku chat.h:
    @#include "chat.h"

    #include <QPushButton>
    #include <QMessageBox>
    #include <enet/enet.h>
    @
    Wrzuciłem folder z nagłówkami enetu, do folderu z nagłówkami Qt.

    A na koniec dodam kilka przykładowych błędów:
    @enet64.lib(win32.o):-1: błąd: LNK2019: unresolved external symbol __imp_WSAStartup referenced in function enet_initialize
    enet64.lib(win32.o):-1: błąd: LNK2019: unresolved external symbol __imp_timeBeginPeriod referenced in function enet_initialize
    enet64.lib(win32.o):-1: błąd: LNK2019: unresolved external symbol __imp_WSACleanup referenced in function enet_initialize
    enet64.lib(win32.o):-1: błąd: LNK2019: unresolved external symbol __imp_timeEndPeriod referenced in function enet_deinitialize
    enet64.lib(win32.o):-1: błąd: LNK2019: unresolved external symbol __imp_timeGetTime referenced in function enet_host_random_seed@

    Cóż siedzę trochę przy tym. Wujek google, jak na razie mi nie pomógł.

    Z góry dziękuję za pomoc.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      Bimbol
      wrote on last edited by
      #2

      Problem rozwiązany. Do zamknięcia.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved