Ich bekomme immer ein "undefined reference to...".
Die DLL (also Lib) hab ich ohne Probleme kompiliert und gelinkt. Nur die EXE macht Linker-Probs. :-/
exec.pro
Code: Alles auswählen
TARGET = mgcc
include(../../config.pri)
TEMPLATE = app
DESTDIR = ../..
DEPENDPATH += . \
../libs \
../libs/shared \
../libs/ui_forms \
../libs/widgets
INCLUDEPATH += . \
../libs \
../libs/shared \
../libs/ui_forms \
../libs/widgets
# Input
SOURCES += main.cpp
win32:RC_FILE = mgcc.rc
Code: Alles auswählen
#include "MonkeyApp.h"
int main( int argc, char ** argv )
{
CMonkeyApp * mgcc = new CMonkeyApp (argc, argv);
int exit = mgcc->exec();
return exit;
}
Code: Alles auswählen
UI_DIR = ../tmp/ui
MOC_DIR = ../tmp/moc
RCC_DIR = ../tmp/rcc
OBJECTS_DIR = ../tmp/obj/$${MGCC}
unix:OBJECTS_DIR = $$join(OBJECTS_DIR,,,/unix)
macx:OBJECTS_DIR = $$join(OBJECTS_DIR,,,/macx)
win32:OBJECTS_DIR = $$join(OBJECTS_DIR,,,/win32)Code: Alles auswählen
..\tmp\obj\win32\main.o:main.cpp:(.text+0x6a): undefined reference to `CMonkeyApp::CMonkeyApp(int, char**)'MfG