Compiler error on MAC
- Dominant language
- C++
- Stars
- 262
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
external/XMP-Toolkit-SDK/XMPFiles/source/FormatSupport/ID3_Support.cpp:21:9: error: 'MIN' macro redefined [-Werror,-Wmacro-redefined]
21 | #define MIN(a,b) ((a) < (b) ? (a) : (b))
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/sys/param.h:215:9: note: previous definition is here
215 | #define MIN(a, b) (((a)<(b))?(a):(b))
| ^
1 error generated.
Contributor guide
Research direction
Start in external/XMP-Toolkit-SDK/XMPFiles/source/FormatSupport/ID3_Support.cpp at line 21 and reproduce the build with the reported Xcode/macOS SDK. Inspect the local MIN definition alongside the SDK definition and verify that the project builds without the -Wmacro-redefined error on macOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, macos
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100