Skip to content

[imgproc] Compilation error caused by color_yuv.simd.hpp #17546

@philippefoubert

Description

@philippefoubert
System information (version)
  • OpenCV => 4.4.0
  • Operating System / Platform => Windows 64 Bit
  • Compiler => mingw32
Detailed description

The symbol "scr1" is already defined in the mingw-w64 runtime package in "mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\x86_64-w64-mingw32\include\dlgs.h" (included through "windows.h" for example).

Steps to reproduce

The compilation fails.

Several ways to solve this issue
  1. The ugliest one would be to add at the beginning of this file:
#if defined scr1
#  undef scr1
#endif  // scr1
  1. A better one should be to avoid including the "windows.h" file before "color_yuv.simd.hpp"

  2. An alternative could be the renaming of variables.

The guilty mingw32 "dlgs.h" file:
dlgs_h.txt

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions