User forums > General (but related to Code::Blocks)
many impossible to understand errors
cotede2:
thanks but here what I got:
--- Code: ---C:\wxWidgets\samples\db>mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONO
LITHIC=1 UNICODE=1 USE_ODBC=1
if not exist gcc_mswudll mkdir gcc_mswudll
g++ -c -o gcc_mswudll\dbtest_dbtest.o -O2 -mthreads -DHAVE_W32API_H -D__WXMSW_
_ -D_UNICODE -I.\..\..\lib\gcc_dll\mswu -I.\..\..\include -W -Wall -I. -D
WXUSINGDLL -I.\..\..\samples -DNOPCH -Wno-ctor-dtor-privacy -MTgcc_mswudll\d
btest_dbtest.o -MFgcc_mswudll\dbtest_dbtest.o.d -MD -MP dbtest.cpp
In file included from ./../../include/wx/wx.h:21,
from dbtest.cpp:31:
./../../include/wx/hashmap.h:735: warning: type attributes are honored only at t
ype definition
./../../include/wx/hashmap.h:735: warning: type attributes are honored only at t
ype definition
In file included from ./../../include/wx/event.h:18,
from ./../../include/wx/wx.h:25,
from dbtest.cpp:31:
./../../include/wx/clntdata.h:20: warning: type attributes are honored only at t
ype definition
./../../include/wx/clntdata.h:20: warning: type attributes are honored only at t
ype definition
./../../include/wx/clntdata.h:25: warning: type attributes are honored only at t
ype definition
./../../include/wx/clntdata.h:25: warning: type attributes are honored only at t
ype definition
In file included from ./../../include/wx/wx.h:45,
from dbtest.cpp:31:
./../../include/wx/image.h:136: warning: type attributes are honored only at typ
e definition
./../../include/wx/image.h:136: warning: type attributes are honored only at typ
e definition
dbtest.cpp:70:4: #error Sample cannot be compiled unless setup.h has wxUSE_ODBC
set to 1
dbtest.cpp: In member function `bool DbGridFrame::Initialize()':
dbtest.cpp:3335: error: `wxDbGridColInfo' was not declared in this scope
dbtest.cpp:3335: error: `cols' was not declared in this scope
dbtest.cpp:3336: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3337: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3338: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3339: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3340: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3341: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3342: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3343: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3343: error: `wxGRID_VALUE_DBAUTO' was not declared in this scope
dbtest.cpp:3344: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3345: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3346: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3348: error: `wxDbGridColInfo' is not a type
dbtest.cpp:3394: error: `wxDbGridTableBase' was not declared in this scope
dbtest.cpp:3394: error: `db' was not declared in this scope
dbtest.cpp:3394: error: `wxDbGridTableBase' is not a type
dbtest.cpp:3394: error: `wxUSE_QUERY' was not declared in this scope
dbtest.cpp:3396: error: type `<type error>' argument given to `delete', expected
pointer
dbtest.cpp:3335: warning: unused variable 'wxDbGridColInfo'
dbtest.cpp:3343: warning: unused variable 'wxGRID_VALUE_DBAUTO'
dbtest.cpp:3394: warning: unused variable 'wxDbGridTableBase'
dbtest.cpp:3394: warning: unused variable 'wxUSE_QUERY'
mingw32-make: *** [gcc_mswudll\dbtest_dbtest.o] Error 1
C:\wxWidgets\samples\db>
--- End code ---
what is wrong?
stahta01:
--- Quote from: cotede2 on May 06, 2010, 08:34:47 pm ---
dbtest.cpp:70:4: #error Sample cannot be compiled unless setup.h has wxUSE_ODBC
set to 1
what is wrong?
--- End quote ---
--- Quote from: stahta01 on May 05, 2010, 09:51:34 pm ---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 ---
--- End quote ---
You either did not edit setup.h correctly or are NOT using the wxWidgets installation you edited.
Tim S.
cotede2:
thank you. It worked after I also moved the custom dll to the correct folder in inside the db folder cause first off, it said that a .dll was missing
Navigation
[0] Message Index
[*] Previous page
Go to full version