Windows C compile configuration #defines WINVER 0x0500 ...

73 views
Skip to first unread message

howard.thomson

unread,
Dec 3, 2020, 7:09:28 AM12/3/20
to Eiffel Users
Hi,
I am having problems with getting transparent windows to work, and it occurred to me to have a look at the Makefiles for my project, which include the line:

CFLAGS = -O0 -pipe -imacros eif_config.mingw.h -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_UNICODE -DUNICODE -DWIN32_LEAN_AND_MEAN   -DWORKBENCH -I"C:\Users\hat\EiffelStudio/studio/spec/win64/include" -I. $(INCLUDE_PATH)
CPPFLAGS = -O0 -pipe -imacros eif_config.mingw.h -D_WIN32_WINNT=0x0500 -DWINVER=0x0500 -D_UNICODE -DUNICODE -DWIN32_LEAN_AND_MEAN   -DWORKBENCH -I"C:\Users\hat\EiffelStudio/studio/spec/win64/include" -I. $(INCLUDE_PATH)

In particular, -DWINVER=0x0500 and -D_WIN32_WINNT=0x0500

Both of these imply a  minimum of Windows Server 2003 or thereabouts, whereas I need a minimum of 0x602 for Windows 8 functionality.

I seem to be finding dead-ends everywhere so far, including the two config.sh files where I have tried to alter this, so far without success.

Where do I change the configuration for these #defines, and is it likely to make any difference ?

r...@amalasoft.com

unread,
Dec 3, 2020, 7:26:12 AM12/3/20
to eiffel...@googlegroups.com
Hi Howard

While I can't say if such will work, adding a C compilation flag is easy enough.
In Eiffel Studio, open the project settings dialog (from the tool bar).  Right-click on the Advanced/Externals item, exposing a popup menu that includes the "Add C flag" option.

R
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/881219b9-1626-4eb6-bede-fd134d09ea59n%40googlegroups.com.

howard.thomson

unread,
Dec 3, 2020, 9:01:36 AM12/3/20
to Eiffel Users
I tried the Add C Flag option, and it failed, with a warning that WINVER was being redefined, and it was then ignored in the compilation.
I need to find where -DWINVER is derived from -- possibly in the WEL library .ecf, or a config.sh that I haven't yet identifiied.
H

r...@amalasoft.com

unread,
Dec 3, 2020, 9:10:00 AM12/3/20
to eiffel...@googlegroups.com
And this might be a good occasion to request a tweak to the UI.  If, instead of a right-button popup, there were another layer of tree items, those options would be much more obvious to users.
R

r...@amalasoft.com

unread,
Dec 3, 2020, 11:39:27 AM12/3/20
to eiffel...@googlegroups.com
Hi Howard

I grepped around a bit and found the file  w32api.h in c:/Program Files/Eiffel Software/EiffelStudio 18.01 GPL/gcc/win64/mingw/x86_64-w64-mingw32/include/

It might be clue at least.
R

-------- Original Message --------
Subject: Re: [eiffel-users] Windows C compile configuration #defines
WINVER 0x0500 ...
From: "howard.thomson" <howard.a...@gmail.com>
Date: Thu, December 03, 2020 9:01 am
To: Eiffel Users <eiffel...@googlegroups.com>

I tried the Add C Flag option, and it failed, with a warning that WINVER was being redefined, and it was then ignored in the compilation.
I need to find where -DWINVER is derived from -- possibly in the WEL library .ecf, or a config.sh that I haven't yet identifiied.
H

On Thursday, 3 December 2020 at 12:26:12 UTC rfo wrote:
Reply all
Reply to author
Forward
0 new messages