On Tue, Aug 9, 2011 at 11:26 PM, Olivier Schonken
<olivier.schon...@gmail.com> wrote:
> Hi Xiaofan
>
> I also experienced the same build error a while ago.  To fix it I manually
> checked out version 0.63 of JimTCL,

Just wondering how you do that?

> and after that, the build went on
> without any problems.  I did a git clone of openocd just-now, and I did a
> --host="i686-w64-mingw32" build on a Windows 7 installation of cygwin, and
> it compiled without a hitch.
>
> Please let me know if this doesn't help.

I tried the 64bit cross build and it is still the same issue. The error
messages are quite strange though.

cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o jim-win32compat
.o ../../jimtcl/jim-win32compat.c
cc1: warnings being treated as errors
../../jimtcl/jim-win32compat.c: In function ‘dlopen’:
../../jimtcl/jim-win32compat.c:9: error: implicit declaration of function ‘Load
LibraryA’
../../jimtcl/jim-win32compat.c: In function ‘dlclose’:
../../jimtcl/jim-win32compat.c:14: error: implicit declaration of function ‘Fre
eLibrary’
../../jimtcl/jim-win32compat.c:14: error: ‘HANDLE’ undeclared (first use in th
is function)
../../jimtcl/jim-win32compat.c:14: error: (Each undeclared identifier is reporte
d only once
../../jimtcl/jim-win32compat.c:14: error: for each function it appears in.)
../../jimtcl/jim-win32compat.c:14: error: expected ‘)’ before ‘handle’
../../jimtcl/jim-win32compat.c: In function ‘dlsym’:
../../jimtcl/jim-win32compat.c:20: error: implicit declaration of function ‘Get
ProcAddress’
../../jimtcl/jim-win32compat.c:20: error: ‘HMODULE’ undeclared (first use in t
his function)
../../jimtcl/jim-win32compat.c:20: error: expected ‘)’ before ‘handle’
../../jimtcl/jim-win32compat.c:20: error: return makes pointer from integer with
out a cast
../../jimtcl/jim-win32compat.c: In function ‘dlerror’:
../../jimtcl/jim-win32compat.c:26: error: implicit declaration of function ‘For
matMessageA’
../../jimtcl/jim-win32compat.c:26: error: ‘FORMAT_MESSAGE_FROM_SYSTEM’ undecla
red (first use in this function)
../../jimtcl/jim-win32compat.c:26: error: implicit declaration of function ‘Get
LastError’
../../jimtcl/jim-win32compat.c:27: error: ‘LANG_NEUTRAL’ undeclared (first use
 in this function)
make[2]: *** [jim-win32compat.o] Error 1
make[2]: Leaving directory `/cygdrive/d/work/openocd/openocd/build-crossmingw64/
jimtcl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/work/openocd/openocd/build-crossmingw64'

make: *** [all] Error 2


-- 
Xiaofan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to