Login  Register

Re: Help wanted to build on Windows

Posted by Shawn.Curry on May 08, 2019; 5:21pm
URL: https://forum.librecad.org/Help-wanted-to-build-on-Windows-tp5717272p5717357.html

Hi Gary,

The proposed changes you mentioned will lock muParser into using wchar; sort of the opposite of my workaround.  Plus it's a lot more code.    

Most Windows programs are UTF-16 (wchar) codepage by default, since the XP days.  Programs made for Unix-style environs are generally UTF-8 (char, MBCS encoding) cause that was Ken Thompson's design and it didn't break programs built for ANSI.

The correct solution is to rewrite the offending math cpps in a way that allows them compile for either.

Armin @LordOfBikes,

I can make the necessary changes if that's the way the project wants to go, and I can do it in a cross-platform way.  Say the word and I will make it so.