Author Topic: OK, Problem with WXBD  (Read 4705 times)

perrofeo

  • Guest
OK, Problem with WXBD
« on: November 30, 2005, 11:07:55 pm »
I am worried, certain, ok, good, I wanted to ask:  how I do to him?  for:
to be able to use wxdb, already recompile wxwidgets 2.6.2, and I have libs that necessary(libwxmsw26.a etc etc), but even so I continue having the error of linker,

I have been compiling in another computer, and everything works correctly, and in the present computer, it was working, but when I Uninstall DEVC. the problems began, and now jaja. nothing

this is the problem

-L"C:/Dev-Cpp/lib/gcc_dll" -mwindows -lwxmsw26 -lwxmsw26_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 ../lib/gcc_dll/libwxmsw26.a 

ferreteriaFrm.obj(.text+0x6210):ferreteriaFrm.cpp: undefined reference to `wxDb::GetNext()'
ferreteriaFrm.obj(.text+0x6fc7):ferreteriaFrm.cpp: undefined reference to `wxDb::GetNext()'
ferreteriaFrm.obj(.text+0x7799):ferreteriaFrm.cpp: undefined reference to `wxDb::GetNext()'
consultas.obj(.text+0x115):consultas.cpp: undefined reference to `wxDbConnectInf::wxDbConnectInf(void*, wxString const&, wxString const&, wxString const&, wxString const&, wxString const&, wxString const&)'
consultas.obj(.text+0x189):consultas.cpp: undefined reference to `wxDbConnectInf::SetDsn(wxString const&)'
consultas.obj(.text+0x1c1):consultas.cpp: undefined reference to `wxDbConnectInf::SetUserID(wxString const&)'
consultas.obj(.text+0x1f0):consultas.cpp: undefined reference to `wxDbConnectInf::SetPassword(wxString const&)'
consultas.obj(.text+0x25f):consultas.cpp: undefined reference to `wxDb::wxDb(void* const&, bool)'
consultas.obj(.text+0x291):consultas.cpp: undefined reference to `wxDb::wxDb(void* const&, bool)'
consultas.obj(.text+0x2c3):consultas.cpp: undefined reference to `wxDb::wxDb(void* const&, bool)'
consultas.obj(.text+0x2ea):consultas.cpp: undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
consultas.obj(.text+0x316):consultas.cpp: undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
consultas.obj(.text+0x341):consultas.cpp: undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
consultas.obj(.text+0x391):consultas.cpp: undefined reference to `wxDb::Close()'

consultas.obj(.text+0x39f):consultas.cpp: undefined reference to `wxDb::Close()'
consultas.obj(.text+0x3ac):consultas.cpp: undefined reference to `wxDb::Close()'
consultas.obj(.text+0x3e9):consultas.cpp: undefined reference to `wxDbConnectInf::~wxDbConnectInf()'
consultas.obj(.text+0x404):consultas.cpp: undefined reference to `wxDb::~wxDb()'
consultas.obj(.text+0x424):consultas.cpp: undefined reference to `wxDb::~wxDb()'
consultas.obj(.text+0x444):consultas.cpp: undefined reference to `wxDb::~wxDb()'

consultas.obj(.text+0xdab):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x16d1):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x1742):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x17b4):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x1825):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x1897):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x1908):consultas.cpp: more undefined references to `wxDb::GetData(unsigned short, short, void*, long, long*)' follow
consultas.obj(.text+0x208b):consultas.cpp: undefined reference to `wxDb::GetNext()'
consultas.obj(.text+0x210b):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x253c):consultas.cpp: undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
consultas.obj(.text+0x2d23):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x2d31):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
consultas.obj(.text+0x3548):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x384f):consultas.cpp: undefined reference to `wxDb::GetNext()'
consultas.obj(.text+0x38ac):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x395c):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x3ac9):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x3ad6):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
consultas.obj(.text+0x3c75):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x3c82):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
consultas.obj(.text+0x3da4):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x3efc):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x3fac):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x405c):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x4422):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x4430):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
consultas.obj(.text+0x456f):consultas.cpp: undefined reference to `wxDb::GetNext()'
consultas.obj(.text+0x45fe):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x4691):consultas.cpp: undefined reference to `wxDb::GetData(unsigned short, short, void*, long, long*)'
consultas.obj(.text+0x4837):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x49b5):consultas.cpp: undefined reference to `wxDb::ExecSql(wxString const&)'
consultas.obj(.text+0x49c2):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
consultas.obj(.text+0x49d0):consultas.cpp: undefined reference to `wxDb::CommitTrans()'
collect2: ld returned 1 exit status

make.exe: *** [ferreteria.exe] Error 1

EjecuciĆ³n Terminada

perrofeo

  • Guest
Re: OK, Problem with WXBD
« Reply #1 on: November 30, 2005, 11:12:24 pm »
C:\Dev-Cpp\include\wx\msw\setup.h


// Define 1 to use ODBC classes
#define wxUSE_ODBC          1

it always has been thus

it worked, but no longer :(

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: OK, Problem with WXBD
« Reply #2 on: November 30, 2005, 11:31:30 pm »
OK... let's see...

http://wiki.wxwidgets.org/wiki.pl?ODBC

http://www.wxwidgets.org/manuals/2.6.1/wx_odbcoverview.html#wxodbccompiling

Remember that after compiling you must copy the libs and headers to your MINGW dir, or specify the appropriate wxwidgets directories in your build options.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: OK, Problem with WXBD
« Reply #3 on: November 30, 2005, 11:34:37 pm »
Quote
-L"C:/Dev-Cpp/lib/gcc_dll" -mwindows -lwxmsw26 -lwxmsw26_gl -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 ../lib/gcc_dll/libwxmsw26.a

Unless I 'm going blind, I don't see you linking wxDB anywhere...
Be patient!
This bug will be fixed soon...