Code::Blocks Forums

User forums => Help => Topic started by: perrofeo on November 30, 2005, 10:51:18 pm

Title: Como uso las wxDB
Post by: perrofeo on November 30, 2005, 10:51:18 pm
se supone que ya puse el en el setup.h el

#define wxUSE_ODBC          1 y no funciona ni en DEVC ni en CODEBLOCKS ??????????
que hago, lo puse en otra maquina y funciono, obviamente linkeando los archivos necesarios??????????

Linking executable: C:\Dev-Cpp\FerreteriaV1\wxWidgets.exe
.objs\FerreteriaFrm.o:ferreteriaFrm.cpp:(.text+0x515d): undefined reference to `wxDb::GetNext()'
.objs\FerreteriaFrm.o:ferreteriaFrm.cpp:(.text+0x5ef6): undefined reference to `wxDb::GetNext()'
.objs\FerreteriaFrm.o:ferreteriaFrm.cpp:(.text+0x66a7): undefined reference to `wxDb::GetNext()'
.objs\consultas.o:consultas.cpp:(.text+0xe8): undefined reference to `wxDbConnectInf::wxDbConnectInf(void*, wxString const&, wxString const&, wxString const&, wxString const&, wxString const&, wxString const&)'
.objs\consultas.o:consultas.cpp:(.text+0x157): undefined reference to `wxDbConnectInf::SetDsn(wxString const&)'
.objs\consultas.o:consultas.cpp:(.text+0x189): undefined reference to `wxDbConnectInf::SetUserID(wxString const&)'
.objs\consultas.o:consultas.cpp:(.text+0x1bb): undefined reference to `wxDbConnectInf::SetPassword(wxString const&)'
.objs\consultas.o:consultas.cpp:(.text+0x229): undefined reference to `wxDb::wxDb(void* const&, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x260): undefined reference to `wxDb::wxDb(void* const&, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x297): undefined reference to `wxDb::wxDb(void* const&, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x2bb): undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x2e4): undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x30d): undefined reference to `wxDb::Open(wxDbConnectInf*, bool)'
.objs\consultas.o:consultas.cpp:(.text+0x33d): undefined reference to `wxDb::Close()'
.objs\consultas.o:consultas.cpp:(.text+0x34a): undefined reference to `wxDb::Close()'
.objs\consultas.o:consultas.cpp:(.text+0x357): undefined reference to `wxDb::Close()'
Title: Re: Como uso las wxDB
Post by: rickg22 on November 30, 2005, 10:55:19 pm
Perrofeo: Disculpa, este es un foro donde se habla el inglés.
(Translation: Perrofeo: Sorry, this is an english-spoken forum).

now, regarding your question:

The #define wxUSE_ODBC must be applied BEFORE compiling wxWidgets. You might ask in the wxwidgets forums on how to enable it.
Title: Re: Como uso las wxDB
Post by: mandrav on November 30, 2005, 11:30:32 pm
perrofeo: only English here please...