error: 'strcpy_s' has not been declared

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Gretter74
Just popping in
Just popping in
Posts: 1
Joined: Sun Sep 01, 2013 12:33

error: 'strcpy_s' has not been declared

Postby Gretter74 » Sun Sep 01, 2013 13:08

Regarding: setup process for code::blocks and CEGUI 0.8.2 on windows 7

With the info in this post:http://www.cegui.org.uk/phpBB2/viewtopic.php?f=10&t=6481 regarding editing link.txt ("...here is an error in cmake files for libexpat and libpng..."), CMAKE has now completede for CEGUI with out errors.

I've come to the point of building CEGUI, resulting in these errors:

||=== cegui, all ===|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h||In function 'errno_t CEGUI::strcpy_s(char (&)[__size], const char*)':|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|28|error: '::strcpy_s' has not been declared|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|28|note: suggested alternative:|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|28|note: 'CEGUI::strcpy_s'|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h||In function 'errno_t CEGUI::strcat_s(char (&)[__size], const char*)':|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|33|error: '::strcat_s' has not been declared|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|33|note: suggested alternative:|
f:\progra~1\mingw-~1\x32-48~1.1-w\mingw32\i686-w64-mingw32\include\sec_api\string_s.h|33|note: 'CEGUI::strcat_s'|
cegui\src\CMakeFiles\CEGUIBase-0.dir\build.make|1857|recipe for target 'cegui/src/CMakeFiles/CEGUIBase-0.dir/SimpleTimer.cpp.obj' failed|
CMakeFiles\Makefile2|77|recipe for target 'cegui/src/CMakeFiles/CEGUIBase-0.dir/all' failed|
G:\Bo\programming\cpp\CEGUI\CMAKE\CEGUI\Makefile|135|recipe for target 'all' failed|
||=== Build finished: 5 errors, 0 warnings (0 minutes, 3 seconds) ===|


string_s.h
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcpy_s,char,,_Dst,size_t,,_SizeInBytes,const char *,,_Src)
...
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcat_s,char,,strDestination,size_t,,numberOfElements,const char *,,strSource)
...
$(CMAKE_COMMAND) -E cmake_progress_report G:\Bo\programming\cpp\CEGUI\CMAKE\CEGUI\CMakeFiles $(CMAKE_PROGRESS_76)
...
$(MAKE) -f cegui\src\CMakeFiles\CEGUIBase-0.dir\build.make cegui/src/CMakeFiles/CEGUIBase-0.dir/depend
...
$(CMAKE_COMMAND) -E cmake_progress_start G:\Bo\programming\cpp\CEGUI\CMAKE\CEGUI\CMakeFiles G:\Bo\programming\cpp\CEGUI\CMAKE\CEGUI\CMakeFiles\progress.marks
...


I'm guessing, that I need another string_s library? Any help appriciated.

Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests