Re: Which compiler for a learner of C?



On 28 Sep 2006 12:24:42 -0700, in comp.lang.c , "pkirk25"
<patrick@xxxxxxxxx> wrote:


BRG wrote:
pkirk25 wrote:
Actually, while it looks nice enough, it doesn't compile my existing C
code.

.\parameters.cpp(13) : error C2440: 'initializing' : cannot convert
from 'void *' to 'char *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast

Also it swaps you in warnings like
.\parameters.cpp(38) : warning C4996: 'strcpy' was declared deprecated


These are C++ errors, generated because you're letting the GUI name
your files for you and by default it calls them .cpp.
Go to Folder Options in Explorer, and tell it NOT to hide extensions
on files, this is anyway just a security flaw as it lets virus writers
drop files on your computer and hide the fact they're executables.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.



Relevant Pages

  • Re: Null pointers
    ... > I'm going to use the notation $12345678$ to refer to a pointer whose ... Remember that a null pointer constant is a source ... Conversion is done according to exactly the same rules as all other ... It is conceptually not a compile time construct. ...
    (comp.lang.c)
  • Re: Which compiler for a learner of C?
    ... Actually, while it looks nice enough, it doesn't compile my existing C ... Conversion from 'void*' to pointer to non-'void' requires an ...
    (comp.lang.c)
  • Re: Question about design?
    ... Shouldn't compile. ... 'Base' is a private base class, conversion to ... a pointer to it from Derivedis not allowed. ...
    (microsoft.public.vc.language)
  • Re: Help with malloc()
    ... Conversion from 'void*' to pointer to non-'void' requires an explicit cast ... I did know that an implicit conversion from void to double is legal, so I was wondering why I get this error without the cast. ...
    (comp.lang.c)
  • Re: Which compiler for a learner of C?
    ... Actually, while it looks nice enough, it doesn't compile my ... Conversion from 'void*' to pointer to non-'void' ...
    (comp.lang.c)