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?

Here's the test app:

# #include <windows.h>
# int
# WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine,
#          int nCmdShow )
# {
#     MessageBox(0, L"HELLO!", L"H3LLO!", 0);
#     return 0;
# }

And the Makefile that builds it 

# CE_ARCH ?= arm-mingw32ce
# CC = $(CE_ARCH)-gcc
# 
# LFLAGS += -Wl,--major-subsystem-version,4,--minor-subsystem-version,20
# CFLAGS += -D_WIN32_WCE=0x0400 -D__W32API_USE_DLLIMPORT__
# CELIBS = -L${CEOPT_ROOT}/${CE_ARCH}/lib/ -lws2
# 
# messagebox.exe: messagebox.c
#       $(CC) $(CFLAGS) $(LFLAGS) $^ $(CELIBS) -o $@

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.  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.

Thanks,

--Eric
-- 
******************************************************************************
* From the desktop of: Eric House, [email protected]                        *
*       Crosswords 4.2 for MS Smartphone and PocketPC is OUT: xwords.sf.net  *
******************************************************************************

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to