Re: Re[2]: wxUSE_ACCESSIBILITY and clang-cl

Gisle Vanem <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CAOKnH6M-2L=TiL0S2c+WNDb5ezdb7Y6GDBUWAF8fnb2xGikxUA@mail.gmail.com>
>   You should predefine __WXMSW__ when building under Windows.

Bingo. That did it for the '__clang__' build of FreeDV-GUI.
I would assume that would be unneeded since clang-cl has '_MSC_VER' as a
builtin (!?).

Thanks for the help.



tir. 12. des. 2023 kl. 15:59 skrev Vadim Zeitlin <[email protected]>:

> On Tue, 12 Dec 2023 15:54:26 +0100 Gisle Vanem wrote:
>
> GV> >   But how exactly do you use it? Do you still use nmake?
> GV>
> GV> No. For the FreeDV-GUI project, I use a hacked-up GNU-makefile with the
> GV> same wxFLAGS for MSVC and clang-cl.
>
>  Oh. I'm afraid you're really on your own then because I have no idea which
> setup.h are you generating/using then.
>
> GV> I did not use configure for wxWidgets (or anything else, loathe it).
>
>  Far from me to tell people what to do, but the fact is that we already
> have too many _supported_ build methods (nmake, configure, CMake, project
> files for MSVS). If you're using something else, it's up to you to look at
> how the existing ones work and mimic them. Notably you need to predefine
> the expected preprocessor constants.
>
> GV> > but you may retry by passing --enable-accessibility
> GV>
> GV> What does this flag translate to in NMake terms?
>
>  There is no such flag at make level, it's a preprocessor flag which should
> be defined in setup.h.
>
> GV> I do not see a "#define wxMSW 1" anywhere. Caste to explain?
>
>  You should predefine __WXMSW__ when building under Windows. It's not the
> only symbol you need, please refer to the building instructions in the
> manual if you really, really don't want to use any of the supported build
> methods.
>
>  Good luck,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
>               https://www.tt-solutions.com/
>
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CAOKnH6M-2L%3DTiL0S2c%2BWNDb5ezdb7Y6GDBUWAF8fnb2xGikxUA%40mail.gmail.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.