On Wed, 2009-02-25 at 05:30 -0800, Eric House wrote:
> Thanks to a fix posted here last week I was able to build cegcc from
> the trunk.  Unfortunately, it doesn't build apps that run on either
> WinMo device I have (that run apps built with an older cegcc just
> fine).  Can anyone help me figure out what's wrong?

Sure.

I tried this on my local installation which is not completely what's in
SVN but I don't expect that to be the issue.

> It's fine when CE_ARCH is arm-mingw32ce, but when I change CE_ARCH to
> arm-cegcc, the app builds but when I try to run it get the dreaded
> "The file <file> cannot be opened. ... or one of its components cannot
> be found...." dialog.
>
> I associate this with failure to load a library.

I tried your example in two subdirectories, then ran objdump on the
results. This gave the expected result :
dannypc: {30} arm-cegcc-objdump -x {m,c}/*exe | fgrep DLL
 vma:            Hint    Time      Forward  DLL       First
        DLL Name: coredll.dll
 vma:            Hint    Time      Forward  DLL       First
        DLL Name: cegcc.dll
        DLL Name: COREDLL
        DLL Name: cegcc.dll
dannypc: {31} 

meaning that the mingw32ce executable only links against coredll, the
other one also requires cegcc.dll .

>   Is the newer gcc
> linking against non-winmo libraries by default?  If so, how do I turn
> that off?  I'm not using any non-WinMo APIs and don't want to require
> my users to install any libraries.

The answer to the first question is : cegcc has always done that.
The answer to the second : then this would mean you don't want to use
arm-cegcc but arm-mingw32ce .

Apologies if I am missing something very obvious ...

        Danny

P.S.
  1. There have been issues with the COREDLL vs. coredll.dll difference,
     I don't recall whether and how they were solved.
  2. My test was performed on Windows Mobile 6 (not 6.1). 6.1 is known
     to have issues which 6 doesn't have.
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to