Re: [Cegcc-devel] problem with file mapping and CreateFileForMapping()

2008-06-09 Thread Nuno Lucas
Have you tried commenting out that part of the build? gdb is not needed for the compiler to work, so can be left out entirely. Regards, ~Nuno Lucas - Check out the new SourceForge.net Marketplace. It's the best pl

Re: [Cegcc-devel] problem with file mapping and CreateFileForMapping()

2008-06-08 Thread Nuno Lucas
On Sun, Jun 8, 2008 at 10:56 PM, Vincent Torri <[EMAIL PROTECTED]> wrote: > On Sun, 8 Jun 2008, Nuno Lucas wrote: >> On Sun, Jun 8, 2008 at 8:37 AM, Vincent Torri <[EMAIL PROTECTED]> wrote: >> [...] >>> >>> CreateFileMapping returns the error 6 "

Re: [Cegcc-devel] problem with file mapping and CreateFileForMapping()

2008-06-08 Thread Nuno Lucas
blem with CreateFileMapping() in WinCE, but never used get_osfhandle() for this kind of things (had problems with it in the Win9x days and never used it again). Regards, ~Nuno Lucas - Check out the new SourceForge.net Mark

Re: [Cegcc-devel] [Mingw32ce] Issues when casting char* => uint32_t* and using the [] operator

2007-12-12 Thread Nuno Lucas
On Dec 12, 2007 9:31 PM, Ivan Vucica <[EMAIL PROTECTED]> wrote: > On Dec 12, 2007 6:27 PM, Nuno Lucas <[EMAIL PROTECTED]> wrote: [...] > > > uint16_t getu16(char **p) { > > > uint16_t a = **p + (*(*p+1) << 8); // please ignore endianess > > >

Re: [Cegcc-devel] [Mingw32ce] Issues when casting char* => uint32_t* and using the [] operator

2007-12-12 Thread Nuno Lucas
On Dec 12, 2007 6:00 PM, Carsten Sørensen <[EMAIL PROTECTED]> wrote: > On Dec 12, 2007 6:27 PM, Nuno Lucas <[EMAIL PROTECTED]> wrote: > > The thing is that not all CPU's "raise" an exception when doing an > > un-aligned access. Some just return the wr

[Cegcc-devel] [Mingw32ce] Issues when casting char* => uint32_t* and using the [] operator

2007-12-12 Thread Nuno Lucas
Forgot to CC: the list, again... -- Forwarded message -- From: Nuno Lucas <[EMAIL PROTECTED]> Date: Dec 12, 2007 5:26 PM Subject: Re: [Cegcc-devel] [Mingw32ce] Issues when casting char* => uint32_t* and using the [] operator To: Ivan Vucica <[EMAIL PROTECTED]> On

Re: [Cegcc-devel] [Mingw32ce] Issues when casting char* => uint32_t* and using the [] operator

2007-12-11 Thread Nuno Lucas
On Dec 11, 2007 6:38 PM, Ivan Vucica <[EMAIL PROTECTED]> wrote: > On Dec 11, 2007 4:28 PM, Nuno Lucas <[EMAIL PROTECTED]> wrote: > > > > > > Allocated memory should always come aligned. That's not the problem. > > I would guess the problem is the arra

Re: [Cegcc-devel] C++ exceptions

2007-07-05 Thread Nuno Lucas
use gdb with the mingw compiled binaries). Now the question is: does Windows CE has an equivalent to the Windows system debugger? Regards, ~Nuno Lucas - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the

Re: [Cegcc-devel] Loosing the fight (but not the war), AKA: The dreaded missing errno.

2007-02-15 Thread Nuno Lucas
so a latter support for MFC applications compiled with mingw32ce could become messy if we do too much now. I don't mind having a separate helper library for mingw32ce but, for me, anyone using errno with mingw32ce will always get into trouble latter (there's no way

Re: [Cegcc-devel] mingw32ce: Fix some math.h bad inlined functions

2007-01-31 Thread Nuno Lucas
ST_MATH__ ) __CRT_INLINE double __cdecl logb (double x) { double res; It should be +#if !defined(__MINGW32CE__) && !(__MINGW_GNUC_PREREQ (4, 0) && defined After the small fix, I tested it and seems to work on the basic _isnan

Re: [Cegcc-devel] w32api: Fix GetCharWidth32 definition

2007-01-31 Thread Nuno Lucas
On 1/31/07, Danny Backx <[EMAIL PROTECTED]> wrote: > On Tue, 2007-01-30 at 22:31 +0000, Nuno Lucas wrote: > > The GetCharWidth32 hasn't two variations on WinCE as it has on Windows > > (even if they are the same). > > Yes, this is true for many functions. I

Re: [Cegcc-devel] Fix definition for MsgWaitForMultipleObjects

2007-01-31 Thread Nuno Lucas
the actual WinCE DLL's, so I now see they should not need to be fixed. Thanks, ~Nuno Lucas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated techn

Re: [Cegcc-devel] Hack to build gdb on glibc 2.4 machines

2007-01-31 Thread Nuno Lucas
ned, causing compile errors where they were being used. Just to be clearer, by applying the patch I sent I can build and use gdb on my Kubuntu 6.10. Regards, ~Nuno Lucas - Using Tomcat but need to do more? Need to support

Re: [Cegcc-devel] mingw32ce: Fix some math.h bad inlined functions

2007-01-31 Thread Nuno Lucas
32ce, I think we should only implement what is trivial or already implemented on mingw, and let the user make it's own routines if it needs to. Best regards, ~Nuno Lucas - Using Tomcat but need to do more? Need to support

Re: [Cegcc-devel] Hack to build gdb on glibc 2.4 machines

2007-01-31 Thread Nuno Lucas
bly so they could catch more x86_64 compilation problems. Sorry about my previous bad assumption. Best regards, ~Nuno Lucas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with

[Cegcc-devel] No std::wstring on mingw32ce?

2007-01-31 Thread Nuno Lucas
It seems the partial specialization for std::basic_string is missing on the C++ library for mingw32ce. I'm wondering if it was just an oversight or it's something that needs to be fixed. Regards, ~Nuno Lucas - Ta

[Cegcc-devel] w32api: Fix GetCharWidth32 definition

2007-01-30 Thread Nuno Lucas
dth32 GetCharWidth32W +#endif #define GetCharWidthFloat GetCharWidthFloatW #define GetCharWidth GetCharWidthW #define GetEnhMetaFile GetEnhMetaFileW Regards, ~Nuno Lucas - Take Surveys. Earn Cash. Influence the Future of IT

[Cegcc-devel] mingw32ce: Fix some math.h bad inlined functions

2007-01-30 Thread Nuno Lucas
+#if !defined(__MINGW32CE__) && !(__MINGW_GNUC_PREREQ (4, 0) && defined __FAST_MATH__ ) __CRT_INLINE double __cdecl rint (double x) { double retval; Regards, ~Nuno Lucas - Take Surveys. Earn Cash. Influence the Future of

[Cegcc-devel] Fix definition for MsgWaitForMultipleObjects

2007-01-30 Thread Nuno Lucas
INAPI MsgWaitForMultipleObjectsEx(DWORD,CONST HANDLE*,DWORD,DWORD,DWORD); +#endif #if (WINVER >= 0x0500) WINUSERAPI void WINAPI NotifyWinEvent(DWORD,HWND,LONG,LONG); #endif I suppose it's also needed to fix the import libs, but don't know where to do that (and it's not needed for programs to work)

[Cegcc-devel] Hack to build gdb on glibc 2.4 machines

2007-01-30 Thread Nuno Lucas
e current code. Regards, ~Nuno Lucas - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics thr

Re: [Cegcc-devel] link errors dlls

2006-11-10 Thread Nuno Lucas
an be considered a bug). As you are using the "posix like" cegcc compiler you can try using getcwd(). I believe newlib emulates a current directory on windows ce. Regards, ~Nuno Lucas - Using Tomcat but need to

Re: [Cegcc-devel] About gdb breakage.

2006-10-31 Thread Nuno Lucas
.10, which now includes glibc 2.4 (instead of the earlier 2.3) and linux kernel 2.6.17. Could this be the reason? Regards, ~Nuno Lucas > Cheers, > Pedro Alves - Using Tomcat but need to do more? Need to support web servi

Re: [Cegcc-devel] Build of cegcc fails

2006-10-29 Thread Nuno Lucas
On 10/30/06, Nuno Lucas <[EMAIL PROTECTED]> wrote: I confirm this. An earlier revision before the C++ library was added was working fine (it was nice to see gdb working remotely), but now fails with "errno.h" errors when building gdb, and the strange thing is that it is including

Re: [Cegcc-devel] Build of cegcc fails

2006-10-29 Thread Nuno Lucas
C++ library was added was working fine (it was nice to see gdb working remotely), but now fails with "errno.h" errors when building gdb, and the strange thing is that it is including headers on /usr/include, which should never happ

Re: [Cegcc-devel] where is lstrcpy ?

2006-10-29 Thread Nuno Lucas
ixed functions exported, so can be a nice example for how to use .DEF files and DLL's in cegcc (actually, only used mingw32ce). Regards, ~Nuno Lucas - Using Tomcat but need to do more? Need to support web services, securit

Re: [Cegcc-devel] where is lstrcpy ?

2006-10-29 Thread Nuno Lucas
cpyW is a define to wcscpy, which is on coredll. lstrcpyA is in coredll. it's definition is: WINBASEAPI LPSTR WINAPI lstrcpyA( LPSTR lpString1, LPCSTR lpString2 ); Regards, ~Nuno Lucas - Using Tomcat but n