User forums > Help
wxWidgets problem: 'strlen' not declared in this scope
lllf:
You were right. Together with the wxWidgets search paths I also deleted the mingw/include from the search directories.
It had to be that simple... :)
Thank you.
:D :D :D
harkin:
Hi all. Been having a similar problem to IIIf (or is it lllf?). Anyway...
I kept getting the error about strup
C:\Programme\wxWidgets-2.8.9\include\wx\buffer.h|127|error: `strdup' was not declared in this scope
I'd included the DirectX sdk include path in my search path, and after pushing it to the bottom of the list and pulling the Mingw include path to the top my basic wx.cpp compiles fine.
P.S. I used this post to compile wxWidgets properly
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.8.6_to_develop_Code::Blocks_(MSW)
Thanks guys and gals
psyhotron:
Hi I have similiar problem and it doesn't matter if I will compile wxWidgets from the source code or use wxPack I'm always ending up with the same result wchich is:
C:\wxWidgets-2.8.11\include\wx\chkconf.h|1824|warning: "wxUSE_WX_RESOURCES" is not defined|
C:\wxWidgets-2.8.11\include\wx\defs.h|978|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\defs.h|979|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\buffer.h||In constructor 'wxCharBuffer::wxCharBuffer(const char*)':|
C:\wxWidgets-2.8.11\include\wx\buffer.h|128|error: 'strdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\buffer.h||In member function 'wxCharBuffer& wxCharBuffer::operator=(const char*)':|
C:\wxWidgets-2.8.11\include\wx\buffer.h|128|error: 'strdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\buffer.h||In constructor 'wxWCharBuffer::wxWCharBuffer(const wchar_t*)':|
C:\wxWidgets-2.8.11\include\wx\buffer.h|135|error: '_wcsdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\buffer.h||In member function 'wxWCharBuffer& wxWCharBuffer::operator=(const wchar_t*)':|
C:\wxWidgets-2.8.11\include\wx\buffer.h|135|error: '_wcsdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\string.h||In function 'int Stricmp(const char*, const char*)':|
C:\wxWidgets-2.8.11\include\wx\string.h|141|error: 'strcasecmp' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\string.h|1073|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\string.h|1079|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\string.h|1191|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\string.h|1193|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\list.h||In constructor 'wxListKey::wxListKey(const wxChar*)':|
C:\wxWidgets-2.8.11\include\wx\list.h|406|error: 'strdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\list.h||In constructor 'wxListKey::wxListKey(const wxString&)':|
C:\wxWidgets-2.8.11\include\wx\list.h|408|error: 'strdup' was not declared in this scope|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|536|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|536|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|537|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|537|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h||In member function 'long long unsigned int wxIntegerHash::operator()(long long int) const':|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|536|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|556|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|556|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|557|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\hashmap.h|557|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\math.h||In function 'bool wxIsSameDouble(double, double)':|
C:\wxWidgets-2.8.11\include\wx\math.h|102|warning: comparing floating point with == or != is unsafe|
C:\wxWidgets-2.8.11\include\wx\longlong.h|114|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|133|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|135|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|174|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|199|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|201|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|223|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|225|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|340|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h||In constructor 'wxLongLongNative::wxLongLongNative(wxInt32, wxUint32)':|
C:\wxWidgets-2.8.11\include\wx\longlong.h|119|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|120|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h||In member function 'wxLongLongNative& wxLongLongNative::Assign(double)':|
C:\wxWidgets-2.8.11\include\wx\longlong.h|157|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|351|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|371|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|373|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|402|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|427|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|429|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|446|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|448|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|563|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h||In constructor 'wxULongLongNative::wxULongLongNative(wxUint32, wxUint32)':|
C:\wxWidgets-2.8.11\include\wx\longlong.h|356|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|357|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|1070|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|1071|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|1073|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\longlong.h|1074|warning: ISO C++ 1998 does not support 'long long'|
C:\wxWidgets-2.8.11\include\wx\filefn.h|198|warning: ISO C++ 1998 does not support 'long long'|
||=== Build finished: 7 errors, 45 warnings ===|
I'm trying to solve this problem for about 3 days now ... and I'm loosing my mind here ... so anyone please help me :?
SteelRat:
--- Quote from: psyhotron on October 18, 2010, 07:56:28 pm ---...
--- End quote ---
Are you sure that "X:\MinGW\include" directory is in your "Search directories"?
psyhotron:
I'm using Win 7 64bit and it looks like my wxWidgets compilation fails ... in fact I have tried to compile the source many times using diffrent versions of wxWidgets and also to redirect the output of compilation into a file rather than console but if fails more or less with the same error message
gcc_mswudll\monodll_debugrpt.o: file not recognized: Memory exhausted
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw291u_gcc_custom.dll] Error 1
I did attached full warrning/error log for comparision.
my global variable base is C:\wx were C:\wx is main folder with my source code ...
project build options->search directories:
C:\MinGW\include
$(#wx)\include
$(#wx)\lib\gcc_dll\mswu
Target is set for Release
project build options->release->search directories:
$(#wx)\lib\gcc_dll\mswu
I'm trying to compile the source code using following commands
cd C:\wx\build\msw\
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release clean
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release > install_log.txt
System Path is set to C:\MinGW\bin :?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version