Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Difficult C2664 error  (Read 4153 times)

0 Members and 1 Guest are viewing this topic.

Memorix101

  • Newbie
  • *
  • Posts: 6
    • View Profile
Difficult C2664 error
« on: April 17, 2015, 09:59:18 pm »
Hey guys,

I'm new here :)

I'm currently trying to rewrite the Cube engine step by step in SFML by replacing the old SDL 1.2 code.
So, I decided to start first with the audio stuff from the engine. After a few time of writing I got into an error.
Now, I found out that this error occurs when I just write one SFML line.

Just writing #include <SFML/xxxx.hpp> causes to throw a C2664 error. This thing seems to be a compiler error. I have absolutely no idea, why this is happening and why it only happens with SFML. I'm running Windows 7 x64 and my IDE is Visual Studio 2013. I hope you guys can help me :)

Here the complete error message:
Code: [Select]
Error 16 error C2664: 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_Iput(_OutIt,std::ios_base &,_Elem,char *,size_t) const' : cannot convert argument 5 from 'sprintf_s_f' to 'size_t'
c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum 1213 1 cube
« Last Edit: April 17, 2015, 10:17:33 pm by Memorix101 »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11043
    • View Profile
    • development blog
    • Email
Re: Difficult C2664 error
« Reply #1 on: April 18, 2015, 12:55:51 am »
I doubt it has much to actually do with SFML and is more of a settings issue. Can you provide the verbose build command by following this and fully rebuild the project?

Also is that the full error? Nothing else?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Memorix101

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Difficult C2664 error
« Reply #2 on: April 18, 2015, 02:07:27 am »
Yes, I think it's a setup issue, too.

Yep, it's the full error.



My output after the rebuild:
Code: [Select]
1>  sound.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1214): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1224): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1235): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1245): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1288): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1329): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1338): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(504): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(512): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(520): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(528): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(536): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\string(544): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocmon(724): warning C4002: too many actual parameters for macro 'sprintf_s'
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1213): error C2664: 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_Iput(_OutIt,std::ios_base &,_Elem,char *,size_t) const' : cannot convert argument 5 from 'sprintf_s_f' to 'size_t'
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1209) : while compiling class template member function 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put(_OutIt,std::ios_base &,_Elem,long) const'
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1182) : see reference to function template instantiation 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put(_OutIt,std::ios_base &,_Elem,long) const' being compiled
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\xlocnum(1576) : see reference to class template instantiation 'std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>' being compiled

I just included SFML and it results in this error :/
« Last Edit: March 26, 2019, 02:20:57 pm by Memorix101 »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Difficult C2664 error
« Reply #3 on: April 18, 2015, 05:07:24 am »
That isn't a rebuild, you must click 'Rebuild Project' or 'Clean' and then 'Build Project' to get the full output.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Memorix101

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Difficult C2664 error
« Reply #4 on: April 18, 2015, 06:51:20 am »
ah ok ^-^

I did it and still got the same issue ...

here's the complete output:
Code: [Select]
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(364,5): warning MSB8004: Output Directory does not end with a trailing slash.  This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  cl /c /IC:\w\cube\enet\include /IC:\w\cube\include /W3 /WX- /sdl- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D ENET_DEBUG /D _MBCS /Gm- /MDd /GS- /fp:precise /Zc:wchar_t /Zc:forScope /Yc"cube.h" /Fo".\Debug/" /Fd".\Debug/vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ..\src\pch.cpp
1>cl : Command line warning D9025: overriding '/sdl-' with '/GS-'
1> 
1>  pch.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  cl /c /IC:\w\cube\enet\include /IC:\w\cube\include /W3 /WX- /sdl- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D ENET_DEBUG /D _MBCS /Gm- /MDd /GS- /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Debug/" /Fd".\Debug/vc120.pdb" /Gd /TC /analyze- /errorReport:prompt ..\enet\callbacks.c ..\enet\host.c ..\enet\list.c ..\enet\memory.c ..\enet\packet.c ..\enet\peer.c ..\enet\protocol.c ..\enet\unix.c ..\enet\win32.c
1>cl : Command line warning D9025: overriding '/sdl-' with '/GS-'
1> 
1>  callbacks.c
2>  iForm.cpp
1>  host.c
2>  main.cpp
1>  list.c
1>  memory.c
1>  packet.c
2>  Generating Code...
2>  .NETFramework,Version=v4.5.1.AssemblyAttributes.cpp
1>  peer.c
1>  protocol.c
1>  unix.c
1>  win32.c
2>  Launcher.vcxproj -> C:\Users\my_name\Desktop\cube-engine\src\vcpp\Debug\Launcher.exe
1>..\enet\win32.c(60): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2238) : see declaration of 'gethostbyname'
1>..\enet\win32.c(78): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1>          C:\Program Files (x86)\Windows Kits\8.1\Include\um\winsock2.h(2216) : see declaration of 'gethostbyaddr'
1>..\enet\win32.c(82): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>  Generating Code...
1>  Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
1>  Copyright (C) Microsoft Corporation.  All rights reserved.
1> 
1>  cl /c /IC:\w\cube\enet\include /IC:\w\cube\include /W3 /WX- /sdl- /Od /Oy- /D WIN32 /D _DEBUG /D _CONSOLE /D ENET_DEBUG /D _MBCS /Gm- /MDd /GS- /fp:precise /Zc:wchar_t /Zc:forScope /Fo".\Debug/" /Fd".\Debug/vc120.pdb" /Gd /TP /analyze- /errorReport:prompt ..\src\client.cpp ..\src\clientextras.cpp ..\src\clientgame.cpp ..\src\clients2c.cpp ..\src\command.cpp ..\src\console.cpp ..\src\editing.cpp ..\src\entities.cpp ..\src\main.cpp ..\src\menus.cpp ..\src\monster.cpp ..\src\physics.cpp ..\src\rendercubes.cpp ..\src\renderextras.cpp ..\src\rendergl.cpp ..\src\rendermd2.cpp ..\src\renderparticles.cpp ..\src\rendertext.cpp ..\src\rndmap.cpp ..\src\savegamedemo.cpp ..\src\server.cpp ..\src\serverbrowser.cpp ..\src\serverms.cpp ..\src\serverutil.cpp ..\src\sound.cpp ..\src\tools.cpp ..\src\weapon.cpp ..\src\world.cpp ..\src\worldio.cpp ..\src\worldlight.cpp ..\src\worldocull.cpp ..\src\worldrender.cpp
1>cl : Command line warning D9025: overriding '/sdl-' with '/GS-'
1> 
1>  client.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  clientextras.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  clientgame.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  clients2c.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  command.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\command.cpp(280): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>  console.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  editing.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  entities.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  main.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  menus.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  monster.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  physics.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  rendercubes.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  renderextras.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  rendergl.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  rendermd2.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\rendermd2.cpp(69): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>  renderparticles.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  rendertext.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  rndmap.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  savegamedemo.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  Generating Code...
1>  Compiling...
1>  server.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\server.cpp(466): warning C4244: 'argument' : conversion from 'time_t' to 'int', possible loss of data
1>  serverbrowser.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\serverbrowser.cpp(296): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>  serverms.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  serverutil.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  sound.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocale(337): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1214): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1224): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1235): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1245): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1288): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1329): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1338): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(504): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(512): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(520): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(528): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(536): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string(544): warning C4002: too many actual parameters for macro 'sprintf_s'
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocmon(724): warning C4002: too many actual parameters for macro 'sprintf_s'
1>..\src\sound.cpp(119): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>..\src\sound.cpp(120): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1213): error C2664: 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::_Iput(_OutIt,std::ios_base &,_Elem,char *,size_t) const' : cannot convert argument 5 from 'sprintf_s_f' to 'size_t'
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1209) : while compiling class template member function 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put(_OutIt,std::ios_base &,_Elem,long) const'
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1182) : see reference to function template instantiation 'std::ostreambuf_iterator<char,std::char_traits<char>> std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>::do_put(_OutIt,std::ios_base &,_Elem,long) const' being compiled
1>          with
1>          [
1>              _OutIt=std::ostreambuf_iterator<char,std::char_traits<char>>
1>  ,            _Elem=char
1>          ]
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\xlocnum(1576) : see reference to class template instantiation 'std::num_put<char,std::ostreambuf_iterator<char,std::char_traits<char>>>' being compiled
1>  tools.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\tools.cpp(89): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>..\src\tools.cpp(111): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>  weapon.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  world.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\world.cpp(326): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>  worldio.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>..\src\worldio.cpp(109): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(211) : see declaration of 'fopen'
1>  worldlight.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  worldocull.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  worldrender.cpp
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(64): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\string.h(195) : see declaration of 'strncpy'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(70): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>c:\users\my_name\desktop\cube-engine\src\src\tools.h(82): warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>          C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\stdio.h(346) : see declaration of '_vsnprintf'
1>  Generating Code...
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========

« Last Edit: March 26, 2019, 02:23:35 pm by Memorix101 »

binary1248

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1405
  • I am awesome.
    • View Profile
    • The server that really shouldn't be running
Re: Difficult C2664 error
« Reply #5 on: April 18, 2015, 08:00:28 am »
SFML is a native C++ library (not just C with classes). If you include any of its headers, you will end up pulling in a lot of C++ headers as well. I'm not certain, but in older Visual Studio library versions, a lot of the C variadic function stuff was implemented using monstrous macros. Those macros might be clashing with the proper C++ implementation now that you've included something that is C++. You should probably try to clean out the old C function stuff (strncpy, sprintf_s, etc.) and replace them with true C++ code.

Code: [Select]
warning C4002: too many actual parameters for macro 'sprintf_s'This especially, has me wondering how the code even compiles in this case.

Basically, you have the warnings turned on already, before transitioning to SFML, make sure to fix all those warnings. From what I can tell all of them are the result of archaic C code being used. There are far better C++ alternatives, and I'm sure a side effect of replacing the C with C++ code is that SFML will eventually just work as it should.
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).

 

anything