Hello,
I lost some hours trying to set up wxWidgets and starting a simple program using Code::Blocks.
wxWidgets is installed and built, following this tutorial.
But when I start a new project I get into some message saying: "A matching debug configuration cannot be found in the wxWidgets directory you specified. Would you like to link tihs target against the release binaries instead? (Debugging the executable will still be possible.)"
I chose yes or no and get to the next step.
"This means that debug target will not build. Are you sure you want to continue?"
Choosing yes.
Project starts. I try to build it and get some errors:
-------------- Build: Debug in wxw1 (compiler: GNU GCC Compiler)---------------
windres.exe -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_dll\mswu -J rc -O coff -i C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\resource.rc -o obj\Debug\resource.res
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -DwxUSE_UNICODE -Wall -g -std=c++0x -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_dll\mswu -c C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.cpp -o obj\Debug\wxw1App.o
In file included from C:\wxWidgets-2.8.12\include/wx/string.h:55:0,
from C:\wxWidgets-2.8.12\include/wx/memory.h:16,
from C:\wxWidgets-2.8.12\include/wx/object.h:20,
from C:\wxWidgets-2.8.12\include/wx/event.h:17,
from C:\wxWidgets-2.8.12\include/wx/app.h:20,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.h:13,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.cpp:18:
C:\wxWidgets-2.8.12\include/wx/buffer.h: In constructor 'wxCharBuffer::wxCharBuffer(const char*)':
C:\wxWidgets-2.8.12\include/wx/buffer.h:127:1: error: 'strdup' was not declared in this scope
C:\wxWidgets-2.8.12\include/wx/buffer.h: In member function 'wxCharBuffer& wxCharBuffer::operator=(const char*)':
C:\wxWidgets-2.8.12\include/wx/buffer.h:127:1: error: 'strdup' was not declared in this scope
C:\wxWidgets-2.8.12\include/wx/buffer.h: In constructor 'wxWCharBuffer::wxWCharBuffer(const wchar_t*)':
C:\wxWidgets-2.8.12\include/wx/buffer.h:134:1: error: '_wcsdup' was not declared in this scope
C:\wxWidgets-2.8.12\include/wx/buffer.h: In member function 'wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':
C:\wxWidgets-2.8.12\include/wx/buffer.h:134:1: error: '_wcsdup' was not declared in this scope
In file included from C:\wxWidgets-2.8.12\include/wx/memory.h:16:0,
from C:\wxWidgets-2.8.12\include/wx/object.h:20,
from C:\wxWidgets-2.8.12\include/wx/event.h:17,
from C:\wxWidgets-2.8.12\include/wx/app.h:20,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.h:13,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.cpp:18:
C:\wxWidgets-2.8.12\include/wx/string.h: In function 'int Stricmp(const char*, const char*)':
C:\wxWidgets-2.8.12\include/wx/string.h:141:31: error: 'strcasecmp' was not declared in this scope
In file included from C:\wxWidgets-2.8.12\include/wx/gdicmn.h:20:0,
from C:\wxWidgets-2.8.12\include/wx/event.h:21,
from C:\wxWidgets-2.8.12\include/wx/app.h:20,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.h:13,
from C:\Users\sst5clj\MyFolder\code\cbl\_wxw\wxw1\wxw1App.cpp:18:
C:\wxWidgets-2.8.12\include/wx/list.h: In constructor 'wxListKey::wxListKey(const wxChar*)':
C:\wxWidgets-2.8.12\include/wx/list.h:406:36: error: '_wcsdup' was not declared in this scope
C:\wxWidgets-2.8.12\include/wx/list.h: In constructor 'wxListKey::wxListKey(const wxString&)':
C:\wxWidgets-2.8.12\include/wx/list.h:408:44: error: '_wcsdup' was not declared in this scope
Process terminated with status 1 (0 minute(s), 3 second(s))
7 error(s), 0 warning(s) (0 minute(s), 3 second(s))
Can anyone help? I set up the $(#wx) variable properly.
I followed C::B forums but still can't get it working. Out of ideas.