Opened 8 years ago
Closed 8 years ago
#11086 closed Bugs (fixed)
Unqualified calls to strcmp in libs/log/test/run/util_string_literal.cpp
Reported by: | Owned by: | Andrey Semashev | |
---|---|---|---|
Milestone: | To Be Determined | Component: | log |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
Compiling util_string_literal.cpp with Oracle Solaris 12.4 on Solaris, we see the following error: "../libs/log/test/run/util_string_literal.cpp", line 43: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 57: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 73: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 81: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 90: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 98: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 211: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 214: Error: The function "strcmp" must have a prototype. "../libs/log/test/run/util_string_literal.cpp", line 217: Error: The function "strcmp" must have a prototype. 9 Error(s) detected.
The calls to strcmp need to be qualified with std::
Fixed in https://github.com/boostorg/log/commit/7b201bebfa43fa1b5577870dc37371a07a96baad. Thanks.