Peter Schojer wrote: >Nuno Lucas wrote: > > >>On 11/10/06, Peter Schojer <[EMAIL PROTECTED]> wrote: >> >> >> >>>Hi all, >>>I recently discovered cegcc and I'm trying to compile a library as dll. >>>system: Cygwin >>>cegcc: subversion 20061009 >>> >>>The following statement gives me a undefined reference to >>>GetDurrentDirectoryW not found (though it is defined in winbase.h): >>> >>> >>> >>It's defined because we use the mingw32 headers, but Windows CE has no >>concept of current directory, so that will never work (I'm not sure if >>we should go all the way to hidding this functions from the mingw32 >>headers. If yes, then this can be considered a bug). >> >> >> >Thx for your answer but unfortunately it is not only GetCurrentDirectoryW. >But if I read it correctly methods are defined which are not >implemented? That actually prevents one >from using WinCE emulation packages (which add implementations for these >missing functions but >now fail to compile due to the existing entry/-ies in winbase.h). > >So it would be desirable to get rid of them, though, considering this is >a version 0.1, >you have done a great job so far. I was impressed that my code compiled >nearly out of the box, >it's just the linkage now :-) > > >
If you are using cegcc instead of mingw32ce, some of those functions are implemented in cegcc.dll. Take a look using: arm-wince-cegcc-nm -A /opt/cegcc/arm-wince-cegcc/libcegcc.dll.a | grep ' T ' | grep XCE Most of those functions are still unfortunatly undocumented, but by their names, you can guess what they do. Concerning hiding the functions in w32api that are not implemented: My current approach is to disable them as I stumble on them. There are so many, that going through all of them, would litter the code with #ifndef _WIN32_WCE. Not sure if it's a good idea. I am sure most people will stumble on a limitted set of them. For the rest, the linker will still error out. (Just as a note: I am currently using mingw32ce on all my projects.) Cheers, Pedro Alves ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel