Ticket #9140 (closed Bugs: fixed)
Building boost::log's snprintf.hpp in Sun Studio 12.3: some functions aren't defined that are expected
|Reported by:||Brian Vandenberg <phantall+boost@…>||Owned by:||andysem|
|Milestone:||To Be Determined||Component:||log|
I get the following error building with Sun Studio 12.3:
"./boost/log/detail/snprintf.hpp", line 40: snprintf is not defined. "./boost/log/detail/snprintf.hpp", line 41: vsnprintf is not defined. "./boost/log/detail/snprintf.hpp", line 44: swprintf is not defined. "./boost/log/detail/snprintf.hpp", line 45: vswprintf is not defined.
Changes needed are something along the lines of:
#if defined( __SUNPRO_CC ) #include <stdio.h> #else #include <cstdio> #endif
#if defined( __SUNPRO_CC ) using std::swprintf; using std::vswprintf; #else using ::swprintf; using ::vswprintf; #endif
- Status changed from new to closed
- Resolution set to fixed
Note: See TracTickets for help on using tickets.