On Sun, Oct 6, 2013 at 8:47 PM, Jörg Fischer <[email protected]> wrote:
> Hi,
>
> latest git master does not build on current MingW32 due to missing
> "isascii()" reference in jimtcl. Older MingW32 gcc versions seem to work
> fine, so I missed this one until I updated my MingW installation
> recently.
Which MinGW version are you using? Are you using some MinGW
distribution under Linux or use the official MinGW.org distribution
under Windows.
isascii() is working under latest official MinGW.org distribution, please
refer to the following run log.
$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 --build=m
ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable-lto
--enable-libssp --disable-multilib --enable-languages=c,c++,fortran,objc,obj-c++
,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry --enable-l
ibstdcxx-debug --enable-version-specific-runtime-libs --with-gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --
with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes --enable-
libgomp --enable-threads --with-libiconv-prefix=/mingw32 --with-libintl-prefix=/
mingw
Thread model: win32
gcc version 4.8.1 (GCC)
$ cd /c/temp/
$ cat isascii_test.c
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int ch;
for (ch = 0x7c; ch <= 0x82; ch++) {
printf("%#04x ", ch);
if (isascii(ch))
printf("The character is %c\n", ch);
else
printf("Cannot be represented by an ASCII character\n");
}
return 0;
}
$ gcc -o isascii_test isascii_test.c
$ ./isascii_test.exe
0x7c The character is |
0x7d The character is }
0x7e The character is ~
0x7f The character is ⌂
0x80 Cannot be represented by an ASCII character
0x81 Cannot be represented by an ASCII character
0x82 Cannot be represented by an ASCII character
--
Xiaofan
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel