Hi all (esp. Przemek),

I attempted to compile Harbour for WinCE platform using 
make_xmingwce.sh script and cegcc 0.51. I got following 
errors :

../../hbwince.c:652: error: 'LPVOID' redeclared as different kind of symbol
/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/include/winnt.h:88:
 error: previous declaration of 'LPVOID' was here
../../hbwince.c:664: error: 'HLOCAL' redeclared as different kind of symbol
/opt/mingw32ce/lib/gcc/arm-wince-mingw32ce/4.1.0/../../../../arm-wince-mingw32ce/include/windef.h:278:
 error: previous declaration of 'HLOCAL' was here

Unfortunately I completly am not able to see what's wrong 
with the code.



I would like to change a fragment of make xmingwce.sh 
from :

-------------------------
DIR=`cd $(dirname $0);pwd`
if which harbour &> /dev/null; then
    HB_COMP_PATH=`which harbour 2> /dev/null`
else
    HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/$HB_HOST_CC/harbour"
fi
if [ -x "${HB_COMP_PATH}" ]; then
    ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/harbour.exe
else
    echo "You must have a working Harbour executable for your platform on your 
PATH."
    exit 1
fi

ln -s "$DIR/source/pp/$HB_HOST_ARCH/$HB_HOST_CC/hbpp" ${HB_BIN_COMPILE}/hbpp.exe
export HB_PPGEN_PATH=${HB_BIN_COMPILE}
-------------------------

to

-------------------------
DIR=`cd $(dirname $0);pwd`
if [ -z "${HB_COMP_PATH}" ]; then
    if which harbour &> /dev/null; then
        HB_COMP_PATH=`which harbour 2> /dev/null`
    else
        HB_COMP_PATH="$DIR/source/main/$HB_HOST_ARCH/$HB_HOST_CC/harbour"
    fi
fi
if [ -x "${HB_COMP_PATH}" ]; then
    ln -s "${HB_COMP_PATH}" ${HB_BIN_COMPILE}/harbour.exe
else
    echo "You must have a working 'harbour' executable for your platform on 
your PATH."
    exit 1
fi

if [ -z "${HB_PPGEN_PATH}" ]; then
    if which hbpp &> /dev/null; then
        HB_PPGEN_PATH=`which hbpp 2> /dev/null`
    else
        DIR=`dirname ${HB_COMP_PATH}`
        if [ -x "${DIR}/hbpp" ]; then
            HB_PPGEN_PATH="${DIR}/hbpp"
        else
            HB_PPGEN_PATH="$DIR/source/pp/$HB_HOST_ARCH/$HB_HOST_CC/hbpp"
        fi
    fi
fi
if [ -x "${HB_PPGEN_PATH}" ]; then
    ln -s ${HB_PPGEN_PATH} ${HB_BIN_COMPILE}/hbpp.exe
else
    echo "You must have a working 'hbpp' executable for your platform on your 
PATH."
    exit 1
fi
export HB_PPGEN_PATH
-------------------------

because I do not like the current way of setting
HB_COMP_PATH and HB_PPGEN_PATH. They are in fact
hardcoded. Any objections ?

Also hardcoding CCPREFIX is plainly wrong because a new 
cegcc has changed its base name from arm-wince-mingw32ce
to arm-mingw32ce. I'd like to change it from 

    export CCPREFIX="arm-wince-mingw32ce-"

to

    [ -z "$CCPREFIX" ] && export CCPREFIX="arm-wince-mingw32ce-"

What do you think ?

-- 

Marek

----------------------------------------------------------------------
Aj! Boli! Smieszne wpadki - nie probuj tego w domu!
Zobacz filmik >>> http://link.interia.pl/f1e62

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to