Well I am having a nightmare with linking problems for SFML. I simply can't figure this out.
This is the .pro file
#-------------------------------------------------
#
# Project created by QtCreator 2014-03-31T11:57:25
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Test2
TEMPLATE = app
SOURCES += main.cpp\
mainwindow.cpp \
global_objects.cpp \
MyCanvas.cpp \
QSFMLCanvas.cpp
HEADERS += mainwindow.h \
global_objects.h \
MyCanvas.h \
QSFMLCanvas.h
FORMS += mainwindow.ui
LIBS += -LC:/SFML64/lib
CONFIG(release, debug|release): LIBS += -lsfml-audio -lsfml-graphics -lsfml-main -lsfml-network -lsfml-window -lsfml-system
CONFIG(debug, debug|release): LIBS += -lsfml-audio-d -lsfml-graphics-d -lsfml-main-d -lsfml-network-d -lsfml-window-d -lsfml-system-d
INCLUDEPATH += C:/SFML64/include
I have a linker error for everything connected with SFML (
MyCanvas.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl sf::Clock::Clock(void)" (__imp_??0Clock@sf@@QEAA@XZ) referenced in function "public: __cdecl MyCanvas::MyCanvas(class QWidget *,class QPoint const &,class QSize const &)" (??0MyCanvas@@QEAA@PEAVQWidget@@AEBVQPoint@@AEBVQSize@@@Z)
like that)
I was working OK for a while, then I replaced the SFML files again and now I have that.