Hello, $username!
I have one very strange bug with a student project, which sometimes fantastically disappeares but appeares again.
QtCreator/ld says that i have multiply defined function and says something like "first defined here" and points to the strange places like machine code of main.o or (sic!) assembler inlines in some qt core headers.
Sometimes after directory cleaning, it compiles - but next time after the same procedures it points errors again!
Could you compile attachement yourself to see what's really happening?
It is the reason i can't really code what i have to.
jfyi, the project structure:
QT += core gui
TEMPLATE = app
INCLUDEPATH += . \
gui \
logic \
manager
TARGET = Ants
CONFIG += console
CONFIG -= app_bundle
HEADERS = main_window.hpp \
gui/AntWidget.hpp \
gui/IAntGUI.hpp \
gui/IAntGuiImpl.hpp \
logic/IAntLogic.hpp \
logic/IAntLogicImpl.hpp \
manager/AntManager.hpp
SOURCES = main.cpp \
main_window.cpp \
gui/AntWidget.cpp \
gui/IAntGUI.cpp \
gui/IAntGuiImpl.cpp \
logic/IAntLogic.cpp \
logic/IAntLogicImpl.cpp \
#manager/AntManager.cpp
FORMS += MainForm.ui
QT += core gui
TEMPLATE = app
INCLUDEPATH += . \
gui \
logic \
manager
TARGET = Ants
CONFIG += console
CONFIG -= app_bundle
HEADERS = main_window.hpp \
gui/AntWidget.hpp \
gui/IAntGUI.hpp \
gui/IAntGuiImpl.hpp \
logic/IAntLogic.hpp \
logic/IAntLogicImpl.hpp \
manager/AntManager.hpp
SOURCES = main.cpp \
main_window.cpp \
gui/AntWidget.cpp \
gui/IAntGUI.cpp \
gui/IAntGuiImpl.cpp \
logic/IAntLogic.cpp \
logic/IAntLogicImpl.cpp \
#manager/AntManager.cpp
FORMS += MainForm.ui
To copy to clipboard, switch view to plain text mode
TIA.
Added after 7 minutes:
All the headers have ifndef-define-endif pattern.
Bookmarks