Re: [Dev-C++] MinGW port of gcc 3.2 and paths
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Luigi S. <gi...@li...> - 2002-09-17 04:30:46
|
At 11.21 09/15/02 +0530, Abhijit wrote: >Greets, Luigi. > > >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 Thanks, I've realized that my question was a bit OT, but you were so kind to answer it anyway. I'm posting 2 possible solutions, so it will be stored in the ML archive. 1) REDIR A google search using keys: "khan redir" yielded (first result) the directory: http://programming.ccp14.ac.uk/ftp-mirror/programming/mumit-khan/pub/khan/egcs/mingw32/misc/ There I found "redir.zip". To solve my problem: redir -eo gcc -c c:\test\hello.cpp | reverse_slashes 2) ERROUT in the message http://sourceforge.net/mailarchive/message.php?msg_id=1166366 I found out about "errout", a program which may be downloaded using the link: http://www.simtel.net/pub/pd/12516.html To solve my problem: errout gcc -c c:\test\hello.cpp | reverse_slashes Finally, here is the code for "reverse_slashes" reverse_slashes --------------- /* turn slashes ('/') into backslashes ('\\') */ #include <stdio.h> int main() { int c; while ((c = getchar()) != EOF) putchar((c == '/') ? '\\' : c); return 0; } -- gisan |