Re: [Dev-C++] MinGW port of gcc 3.2 and paths
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2002-09-15 05:52:44
|
Greets, Luigi. > Hello all, > > I've downloaded "new" MinGW gcc 3.2 to use it instead of "old" Mingw gcc > 2.95.2. > > As I happen to use "gcc" from the command line, I've noticed the following > change. > > Say that "c:\test\hello.cpp" is the famous "hello world" program, also, > suppose the semicolon, after the string literal "Hello world!\n", is missing. > > When the command: > > gcc -c c:\test\hello.cpp > > is issued, one expects an error message of the type: > > FILE:LINE: MESSAGE > > where FILE is: > c:\test\hello.cpp if "old" gcc is used > c:/test/hello.cpp if "new" gcc is used > > On Win98SE, I would like to have paths written in Windows style, and so > tried a simple pipe: > > gcc -c c:\test\hello.cpp | reverse_slashes > > where "reverse_slashes" is a program turning all slashes into backslashes. > > It does not work, since, gcc prints error messages on the standard error > stream > > > The next thing I thought of is: > > gcc -c c:\test\hello.cpp 2>&1 | reverse_slashes > > but that does not work either, because "command.com" is not "bash"! > > Any suggestion is welcome. > TIA > > -- > gisan Searched the MingW mailing list, got this: ------- Start ------- Try Mumit Kahn's little redir utility. I think links to his site are in the mingw pages link section. with redir you can either redirect to a file or reirect to stdout and use less. Nicholas ------ Stop ------ I visited the site, and did a (very) superficial search, result: no `redir' available. See if you can find it. Or google it, it should be archived somewhere. I remember using it with DJGPP. Some other links: http://sourceforge.net/mailarchive/message.php?msg_id=1165980 ^ Above message http://sourceforge.net/mailarchive/message.php?msg_id=1166366 http://sourceforge.net/mailarchive/message.php?msg_id=1170316 ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |