Re: [Cegcc-devel] x86 libstdc++ crashes

2009-07-05 Thread Johnny Willemsen
Hi, > > You need to either make both calls be to __main, or to __gccmain, > never to both. > > I think I fixed that one already. > > Right now, a constructor from libstdc++ is dying when it gets called > for the first time. > > It happens to get mentioned in a linker message about auto-import.

Re: [Cegcc-devel] Problem with fileno()

2009-07-05 Thread Johnny Willemsen
Hi, > > > I'll try changing the definition of fileno to void *, we'll see > what > > > breaks :-) > > > > Compiling live555 now fails on some lines that use fileno(), with: > > > > error: invalid conversion from 'void*' to 'int' > > > > Just saying. > > > > Yes, that was why I made it return an i

Re: [Cegcc-devel] TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE in resource files

2009-07-05 Thread Johnny Willemsen
Hi, > > Add -D_WIN32_IE=0x0500 or so to your environment. > > I feel like I said this a million times now. > Please stop spreading this wrong advice. You should > never need to define _WIN32_IE on Windows CE. If our headers > require it to expose some definitions needed for CE, then we > need t

Re: [Cegcc-devel] Howto: Compiling ScummVM SVN and all libraries with mingw32ce

2009-07-05 Thread Vincent Torri
Hey, > I've recently created a step-by-step based howto to compile ScummVM > SVN along with all libraries > with MinGW32CE; I think it could be interesting for some of you, so > here the guide: > > http://pocketinsanity.org/web/pocketinsanity/News/News_Details/107 The news are quite nice :-) Jaz

[Cegcc-devel] Howto: Compiling ScummVM SVN and all libraries with mingw32ce

2009-07-05 Thread Ismail Khatib
Hi there! I've recently created a step-by-step based howto to compile ScummVM SVN along with all libraries with MinGW32CE; I think it could be interesting for some of you, so here the guide: http://pocketinsanity.org/web/pocketinsanity/News/News_Details/107 It contains information (and the p

Re: [Cegcc-devel] x86 libstdc++ crashes

2009-07-05 Thread Danny Backx
Pedro Alves wrote : > You need to either make both calls be to __main, or to __gccmain, never to both. I think I fixed that one already. Right now, a constructor from libstdc++ is dying when it gets called for the first time. It happens to get mentioned in a linker message about auto-import. N

Re: [Cegcc-devel] Problem with fileno()

2009-07-05 Thread Pedro Alves
On Wednesday 20 May 2009 14:47:00, Pierre Ynard wrote: > > > I'll try changing the definition of fileno to void *, we'll see what > > breaks :-) > > Compiling live555 now fails on some lines that use fileno(), with: > > error: invalid conversion from 'void*' to 'int' > > Just saying. > Yes, t

Re: [Cegcc-devel] Problem with fileno()

2009-07-05 Thread Pedro Alves
On Wednesday 20 May 2009 14:47:00, Pierre Ynard wrote: > > > I'll try changing the definition of fileno to void *, we'll see what > > breaks :-) > > Compiling live555 now fails on some lines that use fileno(), with: > > error: invalid conversion from 'void*' to 'int' > > Just saying. > Yes, t

Re: [Cegcc-devel] Structure exception handling

2009-07-05 Thread Pedro Alves
Isn't SEH on x86 CE implemented the same as on x86? That is, isn't it stack based, as oposed to table based, as at least ARM, x64_64 are? If so, then you can implement much more functional SEH on x86 with some nasty macros than on ARM. googling around for gcc seh mingw or wine (desktop mingw, th

Re: [Cegcc-devel] x86 libstdc++ crashes

2009-07-05 Thread Pedro Alves
Let's see if I can make sense. So that globsl C++ contructors are run, gcc puts a magic call to a special function right at the top of `main'. On most targets that need it, it's called __main, but on ARM, it's called __gccmain. Now, in addition to this magic call that gcc puts there itself, the

Re: [Cegcc-devel] rshd problem

2009-07-05 Thread Pedro Alves
On Wednesday 10 June 2009 16:40:30, Danny Backx wrote: > On my system, >   5431708 bytes for /opt/mingw32ce/arm-mingw32ce/lib/libstdc++-6.dll >    891904 bytes for /opt/mingw32ce/arm-mingw32ce/lib/device/libstdc > ++-6.dll.stripped > > I'd say use the latter. When PipeDev.dll was written, g++ li

Re: [Cegcc-devel] TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE in resource files

2009-07-05 Thread Pedro Alves
On Tuesday 19 May 2009 14:19:41, Danny Backx wrote: > Add -D_WIN32_IE=0x0500 or so to your environment. I feel like I said this a million times now. Please stop spreading this wrong advice. You should never need to define _WIN32_IE on Windows CE. If our headers require it to expose some definiti

Re: [Cegcc-devel] Incorrect definition of CRITICAL_SECTION?

2009-07-05 Thread Pedro Alves
On Monday 18 May 2009 11:56:24, Danny Backx wrote: > According to > http://fpc.freedoors.org/fpc-2.2.0.source/rtl/win/sysosh.inc > the definition should be something like the patch below says. > > The copyright on this stuff is LGPL so I can take it over. Huh? How does this not violate point 8