I must make a simple app to export sql table to XML format.. a simple portable exe file i build qt static only for this small exe... exact by..
http://wiki.qtcentre.org/index.php?t..._Qt_on_Windows

Now i change the pro file to make the lib.... odbc

Whi... Only sqlite driver is visible?
Waht i must make?
i use qt4.2 & mingw compiler ...

Qt Code:
  1. TARGET = qsqlodbc
  2.  
  3. TEMPLATE =lib
  4. CONFIG += qt warn_off release staticlib
  5. LANGUAGE = C++
  6. #DEFINES -= UNICODE
  7. DEFINES += NDEBUG THREAD_SAFE=1 TEMP_STORE=2
  8.  
  9.  
  10. HEADERS = ../../../sql/drivers/odbc/qsql_odbc.h
  11. SOURCES = main.cpp \
  12. ../../../sql/drivers/odbc/qsql_odbc.cpp
  13.  
  14. mac {
  15. !contains( LIBS, .*odbc.* ) {
  16. LIBS *= -liodbc
  17. }
  18. }
  19.  
  20. unix {
  21. !contains( LIBS, .*odbc.* ) {
  22. LIBS *= -lodbc
  23. }
  24. }
  25.  
  26. win32 {
  27. !win32-borland:LIBS *= -lodbc32
  28. win32-borland:LIBS *= $(BCB)/lib/PSDK/odbc32.lib
  29. }
  30.  
  31. include(../qsqldriverbase.pri)
To copy to clipboard, switch view to plain text mode