On Thu, 2009-09-03 at 07:04 -0700, Dok Sander wrote:
> CEGCC documentation says this:
>
> "the arm-wince-mingw32ce distribution currently only has one DLL :
> /opt/mingw32ce/arm-wince-mingw32ce/bin/mingwm10.dll"
>
> However, on newer version(0.5.91) of cegcc this seems not be true
> anymore.
> My newly-compiled application won't start and the DLL headers of the
> executables differ:
>
> Old executable:
> DLL Name: COREDLL
> ...
> New executable:
> DLL Name: COREDLL
> ...
> DLL Name: libgcc_s_sjlj-1.dll
> ...
> DLL Name: libstdc++-6.dll
> ...
> Now, I can find libgcc_s_sjlj-1.dll in mingw32ce/bin and libstdc
> ++-6.dll in arm-mingw32ce/lib. I transfer the dlls to my device and I
> get a different error message(instead of the obscure "The file cannot
> be opened") : "The file is not a valid Pocket PC application"
>
> Ideas?
I've seen this only when the executable contains an invalid reference.
This means that the cegcc image for the DLL (libcoredll.a) contains more
functions than the actual DLL on your device, and the application
actually uses one of these.
I've recently created tools/dll/testapi.c (in the cegcc svn) which you
can use to verify whether your DLLs do contain the APIs required by your
application. E.g. :
pavilion: {33} rsh ipaq /temp/testapi.exe coredll open
coredll doesn't know about open
pavilion: {34} rsh ipaq /temp/testapi.exe coredll MessageBoxW
coredll implements MessageBoxW (0x03F7F720)
If you run objdump -x on your executable, then you'll see output such
as :
DLL Name: AYGSHELL
vma: Hint/Ord Member-Name Bound-To
80000054 84 <none>
16250 51 SHInitExtraControls
16266 63 SHSipPreference
00016014 00016060 00000000 00000000 00016608 00016160
DLL Name: COMMCTRL
vma: Hint/Ord Member-Name Bound-To
16278 10 CommandBar_AddAdornments
16294 12 CommandBar_Create
162a8 15 CommandBar_GetMenu
162be 19 CommandBar_InsertMenubar
162da 65 InitCommonControls
Each of those functions could be the problem.
Which version of WinCE does your device use ?
Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Cegcc-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel