[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-13 22:25:35
|
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 |