I've strictly followed the tutorial at
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRefAfter playing around a couple of hours, finally end up with some strange problem. It reports that std lib fn is not declared in buffer.h (wxWidgets include).
-------------- Build: Release in wxWork ---------------
Compiling: wxWorkApp.cpp
In file included from C:/wx/include/wx/string.h:55,
from C:/wx/include/wx/log.h:47,
from C:/wx/include/wx/msw/private.h:24,
from C:/wx/include/wx/msw/wrapcdlg.h:18,
from C:/wx/include/wx/wxprec.h:47,
from D:\My Documents\codeBlocksWorkspace\wxWork\wxWorkApp.cpp:12:
C:/wx/include/wx/buffer.h: In constructor `wxCharBuffer::wxCharBuffer(const char*)':
C:/wx/include/wx/buffer.h:129: error: `strdup' was not declared in this scope
C:/wx/include/wx/buffer.h:129: warning: unused variable 'strdup'
C:/wx/include/wx/buffer.h: In member function `wxCharBuffer& wxCharBuffer::operator=(const char*)':
C:/wx/include/wx/buffer.h:129: error: `strdup' was not declared in this scope
C:/wx/include/wx/buffer.h:129: warning: unused variable 'strdup'
C:/wx/include/wx/buffer.h: In constructor `wxWCharBuffer::wxWCharBuffer(const wchar_t*)':
C:/wx/include/wx/buffer.h:136: error: `_wcsdup' was not declared in this scope
C:/wx/include/wx/buffer.h:136: warning: unused variable '_wcsdup'
C:/wx/include/wx/buffer.h: In member function `wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':
C:/wx/include/wx/buffer.h:136: error: `_wcsdup' was not declared in this scope
C:/wx/include/wx/buffer.h:136: warning: unused variable '_wcsdup'
In file included from C:/wx/include/wx/log.h:47,
from C:/wx/include/wx/msw/private.h:24,
from C:/wx/include/wx/msw/wrapcdlg.h:18,
from C:/wx/include/wx/wxprec.h:47,
from D:\My Documents\codeBlocksWorkspace\wxWork\wxWorkApp.cpp:12:
C:/wx/include/wx/string.h: In function `int Stricmp(const char*, const char*)':
C:/wx/include/wx/string.h:141: error: `strcasecmp' was not declared in this scope
C:/wx/include/wx/string.h:141: warning: unused variable 'strcasecmp'
In file included from C:/wx/include/wx/gdicmn.h:20,
from C:/wx/include/wx/msw/private.h:213,
from C:/wx/include/wx/msw/wrapcdlg.h:18,
from C:/wx/include/wx/wxprec.h:47,
from D:\My Documents\codeBlocksWorkspace\wxWork\wxWorkApp.cpp:12:
C:/wx/include/wx/list.h: In constructor `wxListKey::wxListKey(const wxChar*)':
C:/wx/include/wx/list.h:406: error: `_wcsdup' was not declared in this scope
C:/wx/include/wx/list.h:406: warning: unused variable '_wcsdup'
C:/wx/include/wx/list.h: In constructor `wxListKey::wxListKey(const wxString&)':
C:/wx/include/wx/list.h:408: error: `_wcsdup' was not declared in this scope
C:/wx/include/wx/list.h:408: warning: unused variable '_wcsdup'
Process terminated with status 1 (0 minutes, 4 seconds)
7 errors, 7 warnings
-------------- Build Messages ---------------
C:\wx\include\wx\buffer.h||In constructor `wxCharBuffer::wxCharBuffer(const char*)':|
C:\wx\include\wx\buffer.h|129|error: `strdup' was not declared in this scope|
C:\wx\include\wx\buffer.h|129|warning: unused variable 'strdup'|
C:\wx\include\wx\buffer.h||In member function `wxCharBuffer& wxCharBuffer::operator=(const char*)':|
C:\wx\include\wx\buffer.h|129|error: `strdup' was not declared in this scope|
C:\wx\include\wx\buffer.h|129|warning: unused variable 'strdup'|
C:\wx\include\wx\buffer.h||In constructor `wxWCharBuffer::wxWCharBuffer(const wchar_t*)':|
C:\wx\include\wx\buffer.h|136|error: `_wcsdup' was not declared in this scope|
C:\wx\include\wx\buffer.h|136|warning: unused variable '_wcsdup'|
C:\wx\include\wx\buffer.h||In member function `wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':|
C:\wx\include\wx\buffer.h|136|error: `_wcsdup' was not declared in this scope|
C:\wx\include\wx\buffer.h|136|warning: unused variable '_wcsdup'|
C:\wx\include\wx\string.h||In function `int Stricmp(const char*, const char*)':|
C:\wx\include\wx\string.h|141|error: `strcasecmp' was not declared in this scope|
C:\wx\include\wx\string.h|141|warning: unused variable 'strcasecmp'|
C:\wx\include\wx\list.h||In constructor `wxListKey::wxListKey(const wxChar*)':|
C:\wx\include\wx\list.h|406|error: `_wcsdup' was not declared in this scope|
C:\wx\include\wx\list.h|406|warning: unused variable '_wcsdup'|
C:\wx\include\wx\list.h||In constructor `wxListKey::wxListKey(const wxString&)':|
C:\wx\include\wx\list.h|408|error: `_wcsdup' was not declared in this scope|
C:\wx\include\wx\list.h|408|warning: unused variable '_wcsdup'|
||=== Build finished: 7 errors, 7 warnings ===|
Note my environment is exact the same as tutorial suggested.
?? Any idea ??
Thanks,
art