lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>  Wed, 26 Feb 2003 12:34:54 -0800
>  "Nick Trout" <ntrout@rockstarvancouver.com> wrote:
>
>  
>  
>  Whats at (and around) line 2341 in /usr/local/include/wx/event.h ?
>  
>  
>  
>  From: owner-lua-l@tecgraf.puc-rio.br
>  [mailto:owner-lua-l@tecgraf.puc-rio.br] On Behalf Of
>  mahnazt@frogware.com
>  Sent: February 26, 2003 12:30 PM
>  To: Multiple recipients of list
>  Subject: Compiling WxLua
>  
>  
>  
>  Hi , I am trying to compile wxLua in Linux .As it says I run make file
>  ,but  wxLuaApp.cpp can not be compiled .It says : 
>  
>  /usr/local/include/wx/event.h:2341 : stray '\377' in program 
>  .... 
>  
This might be an MSDOS-end-of-line sequence or otherwise a character
wich is not recognized by gcc, but on windows.

Try something like
--------------------8<---------------------------------------------
#!/bin/sh
# 
# strip CR (oct \015 ) characters from files infected by Gates virus
# strangely enough, UNIX gcc is very picky about that...
#

for file in $* ; do
TMP=/tmp/stripcr.$$
sed -e "s/`echo -ne "\015"`//g" $file > $TMP
mv $TMP $file
done
--------------------8<---------------------------------------------

linux gcc is incredibly picky on this (but why not ;-})

Juergen Fuhrmann