cpp doesn't define symbol i386

Tkil the Morose tkil@scrye.com
Tue Oct 14 12:48:00 GMT 1997


Ronald.Wahl@informatik.tu-chemnitz.de writes:

[regarding using a small shell script wrapper as 'cpp':]
 
> "gcc -E" is not equivalent to cpp because cpp read from stdin by default
> and "gcc -E" needs the parameter "-" to force reading from stdin. But
> hardcoding "-" in a shellscript will not be a solution due to cases where
> cpp is called with an inputfile. Is it possible to change the behavior of
> "gcc -E" so that it reads from stdin by default? 

Ronald:

does this do the trick?

   #!/bin/bash
   gcc -E ${*:-'-'}

t.
-- 
Tkil * <URL: http://scrye.com/~tkil > * hopelessly hopeless romantic.
  "So amplify this little one 	|   She hears as much as she can see
   She's a volume freak       	|   And what she sees, she can't believe."
        -- Catherine Wheel, _Happy Days_, "Judy Staring At The Sun"



More information about the Gcc mailing list