My pro file looks like this
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-20T21:20:18
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = EnetTest
TEMPLATE = app
SOURCES += main.cpp\
MainWindow.cpp
HEADERS += MainWindow.h \
enet/win32.h \
enet/utility.h \
enet/unix.h \
enet/types.h \
enet/time.h \
enet/protocol.h \
enet/list.h \
enet/enet.h \
enet/callbacks.h
FORMS += MainWindow.ui
LIBS += -LC:/testDirectory/enetTest -lenet64
#-------------------------------------------------
#
# Project created by QtCreator 2013-07-20T21:20:18
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = EnetTest
TEMPLATE = app
SOURCES += main.cpp\
MainWindow.cpp
HEADERS += MainWindow.h \
enet/win32.h \
enet/utility.h \
enet/unix.h \
enet/types.h \
enet/time.h \
enet/protocol.h \
enet/list.h \
enet/enet.h \
enet/callbacks.h
FORMS += MainWindow.ui
LIBS += -LC:/testDirectory/enetTest -lenet64
To copy to clipboard, switch view to plain text mode
And my main file looks like this
#include "MainWindow.h"
#include <QApplication>
#include "enet/enet.h"
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
enet_initialize();
return a.exec();
}
#include "MainWindow.h"
#include <QApplication>
#include "enet/enet.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
enet_initialize();
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Using MSVC2012 64bit compiler, when I call enet_initialize() , it now can call enet_initialize() but says that there are unresolved exernal symbol (name of function) referenced in function enet_initialize(and other functions inside the library) ...... enet64.lib(win32.o). These are all functions that are defined inside the library so they are defined.
Am I supposed to include anything else with the lib? I did need to include the include headers right? The enet/*.h.
Much appreciated,
Bookmarks