www.digitalmars.com         C & C++   DMDScript  

c++.announce - DMC++ 8.25

reply "Walter" <walter digitalmars.com> writes:
now available:

    www.digitalmars.com/compiler.htm

It includes MicroEmacs, a public domain text editor, complete with source,
that works the same under DOS, DOS32, Win32 and even Linux.

   ftp://www.digitalmars.com/me.zip
Dec 14 2001
next sibling parent reply "Rajiv Bhagwat" <dataflow vsnl.com> writes:
There is a basic problem: (Was with 8.23 also). The following program
compiles and runs without any errors:

/*******************************************************
 Test.cpp : Test program.
********************************************************/

int function1(){
 }
bool function2(){
 }
char *function3(){
 }


int main(int argc,char *argv[]){
//    return 0;
    }
---------------
Where none of the functions return anything!!
- Rajiv



"Walter" <walter digitalmars.com> wrote in message
news:9verjh$3o0$1 digitaldaemon.com...
 now available:

     www.digitalmars.com/compiler.htm

 It includes MicroEmacs, a public domain text editor, complete with source,
 that works the same under DOS, DOS32, Win32 and even Linux.

    ftp://www.digitalmars.com/me.zip
Dec 16 2001
parent reply "Walter" <walter digitalmars.com> writes:
What I get is:
--------------------------
C>sc test -cpp
 }
 ^
test.c(2) : Warning 18: implied return of function1 at closing '}' does not
return value
 }
 ^
test.c(4) : Warning 18: implied return of function2 at closing '}' does not
return value
 }
 ^
test.c(6) : Warning 18: implied return of function3 at closing '}' does not
return value
    }
    ^
test.c(11) : Warning 18: implied return of main at closing '}' does not
return value
link test,,,user32+kernel32/noi;
-----------------------------------
Perhaps you are compiling with -w (turn off warnings)?


"Rajiv Bhagwat" <dataflow vsnl.com> wrote in message
news:9vk724$5dh$1 digitaldaemon.com...
 There is a basic problem: (Was with 8.23 also). The following program
 compiles and runs without any errors:

 /*******************************************************
  Test.cpp : Test program.
 ********************************************************/

 int function1(){
  }
 bool function2(){
  }
 char *function3(){
  }


 int main(int argc,char *argv[]){
 //    return 0;
     }
 ---------------
 Where none of the functions return anything!!
 - Rajiv



 "Walter" <walter digitalmars.com> wrote in message
 news:9verjh$3o0$1 digitaldaemon.com...
 now available:

     www.digitalmars.com/compiler.htm

 It includes MicroEmacs, a public domain text editor, complete with
source,
 that works the same under DOS, DOS32, Win32 and even Linux.

    ftp://www.digitalmars.com/me.zip
Dec 17 2001
parent reply "Rajiv Bhagwat" <dataflow vsnl.com> writes:
Sure, my CFLAGS had -w. When I tried
sc -w- test.cpp
I got the warnings as indicated by you. But frankly, these all should be
errors, not warnings, anyway?
- Rajiv


"Walter" <walter digitalmars.com> wrote in message
news:9vk9nj$8eq$2 digitaldaemon.com...
 What I get is:
 --------------------------
 C>sc test -cpp
  }
  ^
 test.c(2) : Warning 18: implied return of function1 at closing '}' does
not
 return value
  }
  ^
 test.c(4) : Warning 18: implied return of function2 at closing '}' does
not
 return value
  }
  ^
 test.c(6) : Warning 18: implied return of function3 at closing '}' does
not
 return value
     }
     ^
 test.c(11) : Warning 18: implied return of main at closing '}' does not
 return value
 link test,,,user32+kernel32/noi;
 -----------------------------------
 Perhaps you are compiling with -w (turn off warnings)?


 "Rajiv Bhagwat" <dataflow vsnl.com> wrote in message
 news:9vk724$5dh$1 digitaldaemon.com...
 There is a basic problem: (Was with 8.23 also). The following program
 compiles and runs without any errors:

 /*******************************************************
  Test.cpp : Test program.
 ********************************************************/

 int function1(){
  }
 bool function2(){
  }
 char *function3(){
  }


 int main(int argc,char *argv[]){
 //    return 0;
     }
 ---------------
 Where none of the functions return anything!!
 - Rajiv



 "Walter" <walter digitalmars.com> wrote in message
 news:9verjh$3o0$1 digitaldaemon.com...
 now available:

     www.digitalmars.com/compiler.htm

 It includes MicroEmacs, a public domain text editor, complete with
source,
 that works the same under DOS, DOS32, Win32 and even Linux.

    ftp://www.digitalmars.com/me.zip
Dec 17 2001
parent "Laurentiu Pancescu" <lpancescu fastmail.fm> writes:
You're right, they should, according to the standard.  But most compilers
issue warnings, not errors (including gcc-2.95.3, and Borland C++ 5.5.1
free, two of the most ISO C++ compliant compilers).  I tested with ANSI
enforcing option on all three (the two above and DigitalMars C++ 8.25), but
all I got was warnings...

Maybe the idea that old C++ code doesn't stop compiling, but this shouln't
happen in ANSI mode, IMHO.


Laurentiu


"Rajiv Bhagwat" <dataflow vsnl.com> wrote in message
news:9vkqn6$i9q$1 digitaldaemon.com...
 Sure, my CFLAGS had -w. When I tried
 sc -w- test.cpp
 I got the warnings as indicated by you. But frankly, these all should be
 errors, not warnings, anyway?
 - Rajiv


 "Walter" <walter digitalmars.com> wrote in message
 news:9vk9nj$8eq$2 digitaldaemon.com...
 What I get is:
 --------------------------
 C>sc test -cpp
  }
  ^
 test.c(2) : Warning 18: implied return of function1 at closing '}' does
not
 return value
  }
  ^
 test.c(4) : Warning 18: implied return of function2 at closing '}' does
not
 return value
  }
  ^
 test.c(6) : Warning 18: implied return of function3 at closing '}' does
not
 return value
     }
     ^
 test.c(11) : Warning 18: implied return of main at closing '}' does not
 return value
 link test,,,user32+kernel32/noi;
 -----------------------------------
 Perhaps you are compiling with -w (turn off warnings)?


 "Rajiv Bhagwat" <dataflow vsnl.com> wrote in message
 news:9vk724$5dh$1 digitaldaemon.com...
 There is a basic problem: (Was with 8.23 also). The following program
 compiles and runs without any errors:

 /*******************************************************
  Test.cpp : Test program.
 ********************************************************/

 int function1(){
  }
 bool function2(){
  }
 char *function3(){
  }


 int main(int argc,char *argv[]){
 //    return 0;
     }
 ---------------
 Where none of the functions return anything!!
 - Rajiv



 "Walter" <walter digitalmars.com> wrote in message
 news:9verjh$3o0$1 digitaldaemon.com...
 now available:

     www.digitalmars.com/compiler.htm

 It includes MicroEmacs, a public domain text editor, complete with
source,
 that works the same under DOS, DOS32, Win32 and even Linux.

    ftp://www.digitalmars.com/me.zip
Dec 17 2001
prev sibling parent reply Mark Evans <mevans zyvex.com> writes:
Walter,

Good work and thanks for the 16-bit bug fixes.

A suggestion, could you indicate in your announcements what portion of the DM
toolset is affected by a new release.  I'm not always clear whether the version
number applies to the whole toolset as a group, or just the 
compiler, or just the compiler and linker.

Maybe the best thing would be a list of files (*.exe, *.dll, *.c, *.h, ...)
that are affected by a new release.  The "What's New in Version X.Y.Z" page is
close, but it doesn't enumerate the files or indicate which download 
package is indicated for users trying to keep up with your latest official
releases.

These are very minor critiques.  You are doing great work and I thank you. 
It's so great that you should develop a legal will for rights to the DM source
code should you ever perish before it goes open source.

Kind regards,

Mark


On Fri, 14 Dec 2001 22:49:51 -0800, you wrote in c++.announce:
 now available:
 
     www.digitalmars.com/compiler.htm
 
 It includes MicroEmacs, a public domain text editor, complete with source,
 that works the same under DOS, DOS32, Win32 and even Linux.
 
    ftp://www.digitalmars.com/me.zip
 
Dec 28 2001
parent "Walter" <walter digitalmars.com> writes:
Those are good suggestions. -Walter

"Mark Evans" <mevans zyvex.com> wrote in message
news:1103_1009559362 news.digitalmars.com...
 Walter,

 Good work and thanks for the 16-bit bug fixes.

 A suggestion, could you indicate in your announcements what portion of the
DM toolset is affected by a new release. I'm not always clear whether the version number applies to the whole toolset as a group, or just the
 compiler, or just the compiler and linker.

 Maybe the best thing would be a list of files (*.exe, *.dll, *.c, *.h,
...) that are affected by a new release. The "What's New in Version X.Y.Z" page is close, but it doesn't enumerate the files or indicate which download
 package is indicated for users trying to keep up with your latest official
releases.
 These are very minor critiques.  You are doing great work and I thank you.
It's so great that you should develop a legal will for rights to the DM source code should you ever perish before it goes open source.
 Kind regards,

 Mark


 On Fri, 14 Dec 2001 22:49:51 -0800, you wrote in c++.announce:
 now available:

     www.digitalmars.com/compiler.htm

 It includes MicroEmacs, a public domain text editor, complete with
source,
 that works the same under DOS, DOS32, Win32 and even Linux.

    ftp://www.digitalmars.com/me.zip
Dec 28 2001