Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Bugs (& fixes) » Compile with upp-win32-7207 - bugs
Compile with upp-win32-7207 - bugs [message #42868] Fri, 11 April 2014 10:47 Go to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hello all,

I've got the nightly built 04/10/2014 07:12:25 upp-win32-7207.exe
and get this bug. May I forget something?


In file included from C:/upp/out/MyApps/CtrlCore/MINGW.Debug.Debug_Full.Gui\$blitz .cpp:145:0:
C:\upp\uppsrc\CtrlCore\ImageWin32.cpp: In member function 'void Upp::ImageSysData::Paint(Upp::SystemDraw&, int, int, const Rect&, Upp::Colo
r)':
C:\upp\uppsrc\CtrlCore\ImageWin32.cpp:288:43: error: 'SHADEBLENDCAPS' was not declared in this scope
C:\upp\uppsrc\CtrlCore\ImageWin32.cpp:288:62: error: 'SB_PIXEL_ALPHA' was not declared in this scope
C:\upp\uppsrc\CtrlCore\ImageWin32.cpp:288:77: error: 'SB_PREMULT_ALPHA' was not declared in this scope
CtrlCore: 57 file(s) built in (0:02.29), 40 msecs / file, duration = 4718 msecs, parallelization 100%
RichText: 22 file(s) built in (0:07.47), 339 msecs / file, duration = 9969 msecs, parallelization 91%

There were errors. (0:10.25)
Re: Compile with upp-win32-7207 - bugs [message #42869 is a reply to message #42868] Fri, 11 April 2014 12:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Do you have latest MINGW? It seems like something is missing in headers...
Re: Compile with upp-win32-7207 - bugs [message #42871 is a reply to message #42869] Sat, 12 April 2014 00:28 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hi Mirek,

THank you!
Re: Compile with upp-win32-7207 - bugs [message #42872 is a reply to message #42869] Sat, 12 April 2014 01:04 Go to previous messageGo to next message
koldo is currently online  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

I have the same problem, even after reinstalling TDM GCC, but only in 32 bits. Maybe the problem is this:
- In Core/config.h, line 17, there is a #define WINVER WindowsXP
- In wingdi.h, there is a:
#if(WINVER >= 0x0500)
#define SHADEBLENDCAPS 120
...

This means that SHADEBLENDCAPS and other are not included.


Best regards
Iñaki
Re: Compile with upp-win32-7207 - bugs [message #42930 is a reply to message #42872] Mon, 14 April 2014 20:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 11 April 2014 23:04
Hello Mirek

I have the same problem, even after reinstalling TDM GCC, but only in 32 bits. Maybe the problem is this:
- In Core/config.h, line 17, there is a #define WINVER WindowsXP
- In wingdi.h, there is a:
#if(WINVER >= 0x0500)
#define SHADEBLENDCAPS 120
...

This means that SHADEBLENDCAPS and other are not included.


I have tested with my copy of mingw, seems OK, so I am unable to provide a reliable fix.

I would propose fixing this with something like

#ifndef SHADEBLENDCAPS
#define SHADEBLENDCAPS 120
#endif

.... and so forth, put into ImageWin32.cpp.

Could you try that please?

Mirek
Re: Compile with upp-win32-7207 - bugs [message #42935 is a reply to message #42930] Mon, 14 April 2014 23:06 Go to previous message
koldo is currently online  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Mirek

SHADEBLENDCAPS, SB_PIXEL_ALPHA, and others are already defined. By any reason, in Core/config.h, line 17, there is a #define WINVER WindowsXP, so all includes in wingdi.h are discarded, as all of them are under a #if(WINVER >= 0x0500).

Just removing the #define WINVER WindowsXP or using a #define WINVER 0x0500 would solve the problem.


Best regards
Iñaki
Previous Topic: Find and Replace (Edit->Find and Replace->Replace)
Next Topic: debugger
Goto Forum:
  


Current Time: Thu Mar 28 14:00:34 CET 2024

Total time taken to generate the page: 0.01036 seconds