User forums > General (but related to Code::Blocks)

many impossible to understand errors

<< < (2/3) > >>

stahta01:

--- Quote from: cotede2 on May 04, 2010, 10:31:28 pm ---I am a little confused right here.
What do I have to do step by step?
Open codeblocks? open wxwidgets? Usually when I do compile, I just hit the compile button and I dont provide any options.
thank you, could you be more precise

--- End quote ---

You either compiled wxWidgets Libraries yourself or downloaded them?
If you compiled them yourself, use the options to get ODBC library created and compile them again.
If downloaded, search the site for ones with ODBC; I do NOT think it will exist but try it.

Tim S.

cotede2:
yes I did compile myself:
using :
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1

could you tell me please what are the options to get ODBC library created?

stahta01:

--- Quote from: cotede2 on May 05, 2010, 09:46:47 pm ---yes I did compile myself:
using :
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1

could you tell me please what are the options to get ODBC library created?

--- End quote ---

You have to edit setup.h to changed the value of wxUSE_ODBC to 1;
Edit <WXWIN>\include\wx\msw\setup.h and delete the <WXWIN>\lib\gcc_dll\mswu\wx\setup.h
(The make commands copies <WXWIN>\include\wx\msw\setup.h to <WXWIN>\lib\gcc_dll\mswu\wx\setup.h)

Old

--- Code: ---#define wxUSE_ODBC 0

--- End code ---
Changed

--- Code: ---#define wxUSE_ODBC 1

--- End code ---

The build using the addition of USE_ODBC=1; note should do a clean before build

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1 clean
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1 clean

mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1

Tim S.

cotede2:
thank you I did that.
But now when I go back to my application, I still have those undefined references.
I'd like to be able to compile the db sample.
Once in the samples/db folder, what command should I do to compile ? thank you

ollydbg:

--- Quote from: cotede2 on May 06, 2010, 06:16:51 am ---thank you I did that.
But now when I go back to my application, I still have those undefined references.
I'd like to be able to compile the db sample.
Once in the samples/db folder, what command should I do to compile ? thank you

--- End quote ---

You can still run the command:

--- Code: ---mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1
mingw32-make -f makefile.gcc BUILD=debug SHARED=1 MONOLITHIC=1 UNICODE=1 USE_ODBC=1
--- End code ---

in your samples/db folder.

Here is the steps:

1,Open the Dos prompt window,

2, change the current directory to
D:\code\wxWidgets-2.8.11\samples\db

3, run the command there to build the database samples.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version