On 9/6/2010 17:36, Bidski wrote:
> OK, I solved that original problem by copying the files from the
> C:\MinGW\x86_64-w64-mingw32 directory to the C:\MinGW directory, but now I
> am getting a problem with strnlen not being declared. The error is once
> again from building wxWidgets-2.9.1, during the make stage this time though.
>
> In file included from ../include/wx/crt.h:20:0,
>                   from ../include/wx/string.h:4280,
>                   from ../include/wx/memory.h:16,
>                   from ../include/wx/object.h:20,
>                   from ../include/wx/utils.h:19,
>                   from ../include/wx/vector.h:31,
>                   from ../src/stc/scintilla/src/Selection.h:134,
>                   from ../src/stc/scintilla/src/Editor.cxx:41:
> ../include/wx/wxcrt.h: In function 'size_t wxStrnlen(const char*, size_t)':
> ../include/wx/wxcrt.h:174:92: error: 'strnlen' was not declared in this
> scope
> make: *** [wxscintilla_Editor.o] Error 1
>
> The check in configure returns positive for finding strnlen
>
> configure:36036: checking for strnlen
> configure:36092: gcc -o conftest.exe -m64  -m64
> conftest.c  -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 
> -ladvapi32
>   -lwsock32 -lgdi32>&5
> configure:36098: $? = 0
> configure:36116: result: yes
>
> Im sure this has to be a problem with TDM64-4.5.1 as this exact copy of
> wxWidgets was built successfully without any problems at all under
> TDM64-4.5.0.
>
> Is anyone else having problems like this?
>
> Regards
> Bidski
>
>
>

Hi,

Note the driver used for the compile test. C test passes but not C++. I 
think strnlen is disabled for C++, or maybe somebody forgot to include 
the correct headers.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to