Skip to content

Can't build master on VS2013 due to snprintf in core\system.cpp  #8768

@PkLab

Description

@PkLab
System information (version)
  • OpenCV => master 0bc30d3
  • Operating System / Platform => Windows 64 Bit
  • Compiler => Visual Studio 2013
Detailed description

After #8596 (Don't blow out the stack. Use a smaller buffer and prevent buffer overruns with snprintf)
Building with above environment you will have
C3861: 'snprintf': identifier not foun in system.cpp

this is because 'snprintf' isn't available on VS2013 see ticket 809403. A possible workaround is to use #define snprintf _snprintf even if msdn says

in Visual Studio 2015 and Windows 10, snprintf is no longer identical to _snprintf.

please rollback a solution

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions