Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / odbc problem

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. odbc problem
#3673
Posted by: 2004-03-31 16:03:40
hi,

when linking a project with gcc/mingw, i get the following errors :

.../debug-gnu/libMM_DatabaseD.a(MM_DB_Odbc.o)(.text+0xa53):MM_DB_Odbc.cpp: undefined reference to `SQLRowCount@8'
.../debug-gnu/libMM_DatabaseD.a(MM_DB_Odbc.o)(.text+0xe15):MM_DB_Odbc.cpp: undefined reference to `SQLNumResultCols@8'
../debug-gnu/libMM_DatabaseD.a(MM_DB_Odbc.o)(.text+0xf05):MM_DB_Odbc.cpp: undefined reference to `SQLDescribeCol@36'

when compiling and linking with VC7, everything works fine,

what?s going wrong ?

thanx
Michael Mayer
Message2. Re: odbc problem
#3675
Posted by: upCASE 2004-03-31 16:20:29
Hi!
What version of wxWidgets do you use? Did you compile the lib with ODBC support (wxUSE_ODBC 1 in setup.h)? Did you link libodbc32.a in?

upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Message3. Re: odbc problem
#3676
Posted by: 2004-03-31 17:12:57

1) I use Version Ver.2.4.2

2) wxUSE_ODBC is enabled

3) link with libodbc32.a

i'm also using odbc-functions as  SQLAllocStmt, SQLPrepare, etc which are resolved by the linker.


any idea ?


thanx
Michael Mayer
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2024-4-17  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0