octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55672] [octave forge] (control) undefined sym


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:09:24 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #6, bug #55672 (project octave):

"long long" is 64-bit on all platforms. Unfortunately, the format specifier
for "long long" is platform specific. d'oh!

In core Octave we solved this in hg id 7f6a50f73625 by defining this macro:

#if defined (OCTAVE_ENABLE_64)
#  define OCTAVE_IDX_TYPE_FORMAT PRId64
#else
#  define OCTAVE_IDX_TYPE_FORMAT PRId32
#endif


Using it is a little wordy, e.g.:

error ("element number %" OCTAVE_IDX_TYPE_FORMAT
       " undefined in return list", k+1);



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55672>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]