Wrapper kompilieren
Verfasst: 16. Juli 2006 22:24
Muss ich irgendwas in der Projekt-Datei der EXE beachten, damit die ordentlich gelinked wird?
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
main.cpp
config.pri
Fehlermeldung:
Was heißt das jetzt? Findet er die DLL nicht bzw. kann keine Verbindung zw. EXE und DLL herstellen?
MfG
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