databaselayer ODBC: problems building DLL

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
TheAxe
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Dec 29, 2008 2:48 pm

databaselayer ODBC: problems building DLL

Post by TheAxe » Mon Dec 29, 2008 3:09 pm

Hi all,
I need to conect with ODBC and I thought to use databaselayer but I had problems with DLL building.

I use mingw32+code::blocks on WinXP-SP3

I've tried to build with

Code: Select all

mingw32-make.exe -f makefile.gcc odbc
but it results in a libxxxx.a file and I failed finding where to use SHARED flag.

I've tried to import the odbc vc project in codeblocks and build "Win32 DLL Unicode Debug Monolithic" target but the process fail with

Code: Select all

-------------- Build: Win32 DLL Unicode Debug Monolithic in databaselayer_databaselayer_odbc ---------------

Compiling: ..\src\DatabaseErrorReporter.cpp
Compiling: ..\src\DatabaseLayer.cpp
Compiling: ..\src\DatabaseQueryParser.cpp
Compiling: ..\src\DatabaseResultSet.cpp
Compiling: ..\src\DatabaseStringConverter.cpp
Compiling: ..\src\OdbcDatabaseLayer.cpp
Compiling: ..\src\OdbcParameter.cpp
Compiling: ..\src\OdbcPreparedStatement.cpp
Compiling: ..\src\OdbcResultSet.cpp
D:\Sources\Lib\databaselayer\src\OdbcResultSet.cpp: In member function 'virtual bool OdbcResultSet::IsFieldNull(int)':
D:\Sources\Lib\databaselayer\src\OdbcResultSet.cpp:124: warning: unused variable 'nRet'
Compiling: ..\src\OdbcResultSetMetaData.cpp
Compiling: ..\src\PreparedStatement.cpp
Linking dynamic library: ..\lib\gcc_dll\wxcode_msw28ud_databaselayer_odbc.dll
mingw32-g++.exe: ..\lib\gcc_dll\wxcode_msw28ud_databaselayer_odbc.lib: No such file or directory
mingw32-g++.exe: ..\lib\gcc_dll\wxcode_msw28ud_databaselayer_odbc: No such file or directory
Process terminated with status 1 (0 minutes, 31 seconds)
0 errors, 1 warnings
 
What's wrong? How can I succeed?
Thanks.

vtararin
Knows some wx things
Knows some wx things
Posts: 37
Joined: Thu May 24, 2007 4:43 pm
Location: Ukraine
Contact:

Post by vtararin » Mon Dec 29, 2008 3:51 pm

No way without fixing sources. Sources in the trunk now is broken. Please use latest release.

http://downloads.sourceforge.net/wxcode ... g_mirror=0
cofounder of LogicLand Ltd.
my interest Kamenets-Podolskiy Online

TheAxe
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Dec 29, 2008 2:48 pm

Post by TheAxe » Mon Dec 29, 2008 4:20 pm

Thank you vtararin, I've tried with the files you linked but nothing changed. Same problems.

jb_coder
Super wx Problem Solver
Super wx Problem Solver
Posts: 267
Joined: Mon Oct 18, 2004 10:55 am

Post by jb_coder » Mon Jan 05, 2009 11:04 am

Does the directory "..\lib\gcc_dll" exist? One problem with the current Makefile is that it doesn't always create the output directories.

TheAxe
In need of some credit
In need of some credit
Posts: 3
Joined: Mon Dec 29, 2008 2:48 pm

Post by TheAxe » Wed Jan 07, 2009 8:13 am

jb_coder wrote:Does the directory "..\lib\gcc_dll" exist?
Yes, it does.

Post Reply