On Tue, 2010-02-09 at 09:15 -0200, Daniel Monteiro wrote:
> Hello there. I've been trying to compile the example codes from the
> Windows Mobile 2003 SE SDK from Imagination Technologies for OpenGL ES
> 1.0 Common Lite profile. My current commandline is:
> arm-wince-mingw32ce-g++  -DARMV4 -D_ARM_ -DUNICODE -D_UNICODE
> -DPVRT_FIXED_POINT_ENABLE -DDEBUG -D_WIN32_IE=0x0400
> -I/home/daniel/Desktop/testegl/Include
> -I/home/daniel/Desktop/testegl/Windows/Include
> -L/home/daniel/Desktop/testegl/PocketPCARMV4/Lib
> OGLESHelloTriangle_Windows.cpp -oteste.exe -llibGLES_CL
> 
> There are probably better ways to do it, but I want to make something
> easy to drop in and start compiling. Everything ALMOST works. I get
> the following messages from the compiler:
> OGLESHelloTriangle_Windows.cpp: In function 'int WinMain(HINSTANCE__*,
> HINSTANCE__*, TCHAR*, int)':
> OGLESHelloTriangle_Windows.cpp:163: error: 'MONITOR_DEFAULTTOPRIMARY'
> was not declared in this scope

Hmm, I'm not sure what you mean by "almost works" if it doesn't get
compiled yet :-)

Getting values for such symbols is often not so easy, we don't want to
start reading copyrighted Microsoft documents, that would affect the
cegcc license in a bad way.

However :
http://doxygen.reactos.org/da/d64/winuser_8h_source.html says the value
for this macro should be 1.

Also http://www.codeproject.com/KB/dialog/EnsureRectangleOnDisplay.aspx
confirms this.

> OGLESHelloTriangle_Windows.cpp:163: error: 'MonitorFromPoint' was not
> declared in this scope

This appears to be in our winuser.h but hidden behind the wrong
symbols : 
#if (_WIN32_WINNT >= 0x0500 || _WIN32_WINDOWS >= 0x0410)
WINUSERAPI HMONITOR WINAPI MonitorFromPoint(POINT,DWORD);

Could you check whether use of the value 1 for the macro above helps you
out ?

        Danny

-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to