On Fri, 2007-08-17 at 13:17 +0200, [EMAIL PROTECTED] wrote: > I'm trying to compile pocketgpsmap using > mandriva-cegcc-mingw32ce-0.50.tar.gz . I got stuck in this: > > lib_z/gzio.o:gzio.c:(.text+0xf64): undefined reference to `_errno' > lib_z/gzio.o:gzio.c:(.text+0x1c60): undefined reference to `rewind' > lib_jpeg/jmemmgr.o:jmemmgr.c:(.text+0x1d68): undefined reference to `getenv' > collect2: ld returned 1 exit status > Where is library which defines these funcions. Checking > /opt/mingw32ce/arm-wince-mingw32ce/lib/*.a with nm > gave no results.
Windows CE doesn't support some of the unix-like API's you are referring to. That's because the library in lib_z was not written for CE. I've tried compiling pocketgpsmap myself, and did the trivial changes to work around these problems, like #ifdef _WIN32_WCE SetLastError(0); #else errno = 0; #endif or #ifdef _WIN32_WCE m = (char *)(*errnum == Z_ERRNO ? "no errno on WinCE" : s->stream.msg); #else m = (char*)(*errnum == Z_ERRNO ? zstrerror(errno) : s->stream.msg); #endif Also the linux documentation for rewind says The rewind() function sets the file position indicator for the stream pointed to by stream to the beginning of the file. It is equivalent to: (void)fseek(stream, 0L, SEEK_SET) Doing a trivial change got around that too. I didn't see the getenv message, we may be using different versions of the pocketgpsmap source. I got it from svn, revision 52. Our arm-wince-cegcc toolset would normally work to get around these things, but it doesn't appear to like the C++ I'm feeding it. Don't feel like looking into this now. Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel