Re: again: sizeof(wchar_t)

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

 



> llewelly@xxxxxxxxxxxx writes:
>
>This sounds like a newlib bug to me. You should report it.
Probably yes ...

llewelly@xxxxxxxxxxxx writes:

The normal solution is to make configure compile run a program which
   outputs sizeof(wchar_t), and then substitutes that value into your
   header files. I didn't suggest this before because somehow I had
   the impression you were using a cross-compiler (which means the
   configure-time program which determines sizeof(wchar_t) must be
   downloaded to your target and its output somehow uploaded back,
   something which is not always feasible.
You are right, I'm working with cross-compiling environment.

> Florian Weimer wrote:
>
autoconf has macros which can determine compile-time constants even
when cross-compiling.

Hmm, this is the variant. I didn't known that. Theoretically we can determine sizeof wchar_t without running on target board... I'll try to find these autoconf macros.

Thanks guys.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux