Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Awk > Re: problems wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 2145 of 2236
Post > Topic >>

Re: problems with awka for windows

by pop <p_o_p@[EMAIL PROTECTED] > Jan 29, 2008 at 04:26 PM

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




 4 Posts in Topic:
problems with awka for windows
Roland Rau <roland.rau  2008-01-29 12:33:48 
Re: problems with awka for windows
Hermann Peifer <peifer  2008-01-29 20:31:36 
Re: problems with awka for windows
Roland Rau <roland.rau  2008-01-29 14:57:42 
Re: problems with awka for windows
pop <p_o_p@[EMAIL PROT  2008-01-29 16:26:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:39:37 CDT 2008.