Roland Rau said the following on 1/29/2008 11:33 AM:
> Dear all,
>
> I am processing rather large files (at least large in my opinion; the
> combined number of records is about 94million) and I used successfully
> gawk so far. At home on my GNU/Linux computer, I tried awka and it gave
> me a speed boost of about 10-15times in comparison to gawk. At work,
> however, I am confined to Windows and I was unable to work with awka
> (0.7.5).
>
> I tried the following (intentionally simple) script called
awkascript.awk
>
> BEGIN {
> mycounter = 0;
> }
> {
> mycounter += 1;
> }
> END {
> print mycounter;
> }
>
>
> as follows:
> gawk -f awkascript.awk afile.txt
> and everything worked fine.
>
> If I do, however,
> awka -X -f awkascript.awk
> I obtain the following the following output posted below.
>
> Maybe someone has an idea what I can do? Or is possible that there awka
> is not working on Win32 at all (there is something mentioned like that
> on the homepage of awka at http://awka.sourceforge.net/
)
>
> Thanks already in advance,
> Roland
>
>
>
> In file included from awka_out.c:3:
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:37:20:
> config.h: No such file or directory
> In file included from awka_out.c:3:
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:1208:
> error: syntax error before "a_VAR"
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:1216:
> error: syntax error before "a_VAR"
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:1227:
> error: syntax error before "int"
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:1236:
> error: syntax error before "a_VAR"
>
C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/libawka.h:1463:
> error: syntax error before "char"
> awka_out.c: In function `MAIN':
> awka_out.c:43: warning: unused variable `_curfile'
> awka_out.c:50: warning: label `nextrec' defined but not used
> awka_out.c: In function `main':
> awka_out.c:60: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> awka_out.c:62: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> awka_out.c:63: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> awka_out.c:66: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> awka_out.c:72: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> awka_out.c:77: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> `-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
> Awka error: compile failed.
These are gcc compile errors (not awk errors); it appears that there are
either: 1) missing files OR 2) library/include paths are not set... for
awka files
--
(^\pop/^)
I Stopped to think but forgot to start again.
--


|