Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Another question ... :)
A nice feature of Watcom is that it shows the "path" where an error is coming from; say for int f(int n) { return(1); } char f(int n) { return(1); } Watcom says: x.c(13): Error! E385: col(9) attempt to overload function 'f' with a different return type x.c(13): Note! N392: col(9) 'int f( int )' defined in: x.c(8) (col 13) and DMC: { ^ x.c(13) : Error: 'f' previously declared as something else It was declared as: int C func(int ) It is now declared: char C func(int ) return(1); ^ x.c(14) : Error: '=', ';' or ',' expected } ^ x.c(15) : Error: identifier or '( declarator )' expected MS is the laziest, simply telling x.c(13) : error C2556: 'f' : overloaded functions only differ by return type Is there a command line switch to get that invaluable information where a previous definition is from, and possibly how it's included (this c file included the header file x, which ...)? Thanks, Christian Oct 05 2003
"Christian Kaiser" <chk online.de> wrote in message news:blomb6$6od$1 digitaldaemon.com...Is there a command line switch to get that invaluable information where a previous definition is from, and possibly how it's included (this c file included the header file x, which ...)? Oct 05 2003
|