heres my .pro
TEMPLATE = app
QT = gui core sql xml
CONFIG += qt \
release \
warn_on \
thread \
no_lflags_merge \
dll \
console
DESTDIR = bin
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
TARGET = mync
FORMS = ui/dialog.ui
HEADERS += src/dialogimpl.h
SOURCES += src/dialogimpl.cpp src/main.cpp
INCLUDEPATH += "C:/Program Files/NCReport2/include"
DEFINES = NCREPORT_IMPORT
LIBS += [B]-L "C:\Program Files\NCReport2\lib" -lncreport2[/B]
TEMPLATE = app
QT = gui core sql xml
CONFIG += qt \
release \
warn_on \
thread \
no_lflags_merge \
dll \
console
DESTDIR = bin
OBJECTS_DIR = build
MOC_DIR = build
UI_DIR = build
TARGET = mync
FORMS = ui/dialog.ui
HEADERS += src/dialogimpl.h
SOURCES += src/dialogimpl.cpp src/main.cpp
INCLUDEPATH += "C:/Program Files/NCReport2/include"
DEFINES = NCREPORT_IMPORT
LIBS += [B]-L "C:\Program Files\NCReport2\lib" -lncreport2[/B]
To copy to clipboard, switch view to plain text mode
same error:
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -Wl,--out-implib,bin\libmync.a -o bin\mync.exe build/dialogimpl.o build/main.o build/moc_dialogimpl.o -L"c:\Qt\4.3.5\lib"
-L "C:\Program Files\NCReport2\lib" -lncreport2 -lQtSql4 -lQtXml4 -lQtGui4 -lQtCore4
mingw32-make.exe[1]: Leaving directory `C:/mync2'
build/dialogimpl.o(.text+0xa14):dialogimpl.cpp: undefined reference to `_imp___ZN8NCReportC1EP7QObject'
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [bin\mync.exe] Error 1
C:\MinGW\bin\mingw32-make.exe: *** [release] Error 2
if you notice i put -L<space>"<dir>" i cant do this -L"<dir>" (without space) same error
"-Lc:\Program Files\NCReport2\lib" -lncreport2
tnx for your time..
Bookmarks