Hi,

I have a program that runs fine when I select "Build>Set Build Configuration> Release" however when I select "Build>Set Build Configuration>Debug" I get the following: error: collect2: ld returned 1 exit status


This is my project file:

Qt Code:
  1. # -------------------------------------------------
  2. # Project created by QtCreator 2010-01-05T15:47:40
  3. # -------------------------------------------------
  4. TARGET = LoaderV5
  5. TEMPLATE = app
  6. DEPENDPATH += .
  7. INCLUDEPATH += ../..
  8. QMAKE_LIBDIR += ../../build
  9. OBJECTS_DIR = obj
  10. MOC_DIR = moc
  11. UI_DIR = uic
  12. CONFIG += qt \
  13. thread \
  14. warn_on \
  15. console # To see any output from qDebug(), you must add a line reading CONFIG += console to the project file.
  16. SOURCES += main.cpp \
  17. loader.cpp \
  18. addDialog.cpp
  19. HEADERS += loader.h \
  20. qextserialport.h \
  21. qextserialbase.h \
  22. win_qextserialport.h \
  23. addDialog.h
  24. FORMS += loader.ui
  25. CONFIG(debug, debug|release):LIBS += -lqextserialportd
  26. else:LIBS += -lqextserialport
  27. unix:DEFINES = _TTY_POSIX_
  28. win32:DEFINES = _TTY_WIN_
To copy to clipboard, switch view to plain text mode