|
From: | Markus Mützel |
Subject: | [Octave-bug-tracker] [bug #55672] [octave forge] (control) undefined symbol: _Z11warning_msgPKcllPS0_l (development branch) |
Date: | Mon, 11 Feb 2019 17:33:22 -0500 (EST) |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 |
Follow-up Comment #8, bug #55672 (project octave): I was thinking about doing something similar in the packages: #if defined (OCTAVE_ENABLE_64) # define PKG_OCTAVE_IDX_TYPE_FORMAT PRId64 #else # define PKG_OCTAVE_IDX_TYPE_FORMAT PRId32 #endif and using that macro. But I now prefer your approach with C++ string streams. Only change maybe in the last line to avoid possible issues if somehow a format specifier would find its way into os: std::ostringstream os; os << name << ": the " << index << "-th argument had an invalid value"; error ("%s", os.str ()); Also, if I remember correctly, gcc complained if a printf-style function was called with a format string that it couldn't analyse at compile time. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?55672> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |