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: Aparna Kumta <aparna.kumta@…> 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::

Change History (1)

comment:1 by Andrey Semashev, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.