'make full' fails on Mac OS X because of using 'min' in namespace 'std' #71645

Closed
opened 2019-11-17 17:31:24 +01:00 by Philip Claude Caplan · 4 comments

System Information
Operating system: Mac OS X Mojave 10.14.6
Graphics card: Intel Iris Plus Graphics 655 1536 MB

Blender Version
blender-v2.81

Compiler: Apple clang version 11.0.0 (clang-1100.0.33.12)

Steps to reproduce the error

$ make full

/Users/pcaplan/Codes/blender-git/blender/extern/audaspace/src/respec/ChannelMapperReader.cpp:101:45: error: no member named 'min' in namespace 'std'

      const Channels source_channel_count = std::min(m_source_channels, CHANNELS_SURROUND71);
                                            ~~~~~^

/Users/pcaplan/Codes/blender-git/blender/extern/audaspace/src/respec/ChannelMapperReader.cpp:102:45: error: no member named 'min' in namespace 'std'

      const Channels target_channel_count = std::min(m_target_channels, CHANNELS_SURROUND71);
                                            ~~~~~^

2 errors generated.
make- [x]: *** [extern/audaspace/CMakeFiles/audaspace.dir/src/respec/ChannelMapperReader.cpp.o] Error 1
make- [x]: ***Waiting for unfinished jobs....Proposed solution
This is easily fixed by including in 'extern/audaspace/src/respec/ChannelMapperReader.cpp'

**System Information** Operating system: Mac OS X Mojave 10.14.6 Graphics card: Intel Iris Plus Graphics 655 1536 MB **Blender Version** blender-v2.81 Compiler: Apple clang version 11.0.0 (clang-1100.0.33.12) **Steps to reproduce the error** $ make full /Users/pcaplan/Codes/blender-git/blender/extern/audaspace/src/respec/ChannelMapperReader.cpp:101:45: error: no member named 'min' in namespace 'std' ``` const Channels source_channel_count = std::min(m_source_channels, CHANNELS_SURROUND71); ~~~~~^ ``` /Users/pcaplan/Codes/blender-git/blender/extern/audaspace/src/respec/ChannelMapperReader.cpp:102:45: error: no member named 'min' in namespace 'std' ``` const Channels target_channel_count = std::min(m_target_channels, CHANNELS_SURROUND71); ~~~~~^ ``` 2 errors generated. make- [x]: *** [extern/audaspace/CMakeFiles/audaspace.dir/src/respec/ChannelMapperReader.cpp.o] Error 1 make- [x]: ***Waiting for unfinished jobs....**Proposed solution** This is easily fixed by including <algorithm> in 'extern/audaspace/src/respec/ChannelMapperReader.cpp'

Added subscriber: @philipclaude

Added subscriber: @philipclaude
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Ray molenkamp self-assigned this 2019-11-17 17:35:49 +01:00
Member

thanks for the report but, it is already fixed in blender/blender@67fa8d2307

thanks for the report but, it is already fixed in blender/blender@67fa8d2307
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#71645
No description provided.