DB on linux
Thomas Zehbe
tz at ingenion.de
Fri Nov 3 02:13:56 PST 2006
Am Freitag, 3. November 2006 01:18 schrieb Sebastien Senechal:
> hi
>
> I was trying to tryout the wxdb libraries
>
> using wxWidget 2.7.1
> 1. demos/ddbrowse doesn't compile
> /opt/wx/wxWidgets/demos/dbbrowse/dbbrowse.cpp:201: error: 'aLogo_xpm' was
> not declared in this scope
>
>
> 2. samples/db
>
> compiled ok but when executed, got a "Unable to connect to the data
> source" the ODBC data sources list box is empty .... and can't do anything
> from there...
>
> I have been looking for doc all around but couldn't find one...
>
> how do we specify these data sources under linux?
> is it a system config or wxWidgets config ?
Make a file .odbc.ini in your homedir. This should have f. E. this content:
[ODBC Data Sources]
test = psqlodbc
[test]
Driver = /usr/local/lib/psqlodbcw.so
Host = localhost
Server = localhost
Servername = localhost
Database = mosys
Username = tz
Port = 5432
Tracing = 3
TraceFile = ./odbctrace.log
Debugging = 3
DebugFile = ./odbcdebug.log
Trace = 1
TraceAutoStop = 1
The named so file is the potgreSQL driver in unicode version.
Of course you have to name the right one for your database.
Regards,
Thomas
>
> thanks in advance
>
> seb
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 90 4
Fax: 05043 / 40 57 90 7
More information about the wx-users
mailing list