Re: Which compiler for a learner of C?



"pkirk25" <patrick@xxxxxxxxx> wrote in
news:1159471482.316426.126330@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:


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


C is not C++, remember. If your file names are *.cpp, I'm dubious
that your compiler is trying to compile them as C.

--
rzed
.



Relevant Pages

  • 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: WG: SI Units - has Ada missed the boat?
    ... I don't remember the details but there was also a way to define the conversion from various units into the generic _UNITS. ... This program would then write the ADA specs and bodies for the conversion. ... The "UNITS" package took about 4 hours to compile and every component took a long time to compile because every expression had to be compared to the myriad of overloads to determine if the expression was valid. ... myint: INTEGER; ...
    (comp.lang.ada)
  • Re: Microsoft Losing Interest in C#?
    ... > The code doesn't compile right now because, IIRC, the JCLA generated a few ... > javaisms in the sections where a direct conversion wasn't possible. ... The JLCA doesn't understand the Comparable interface, ... UUID.cs: error CS0246: The type or namespace name 'MessageFormat' ...
    (microsoft.public.dotnet.languages.csharp)
  • 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: [ANNOUNCE] high-res-timers patches for 2.6.6
    ... but all are compile in. ... >>I would have to redo the conversion code. ... can, at boot time, switch to one of the standard clocks and thus disable HRT (or ... I had not considered not using the APIC timer if it was available. ...
    (Linux-Kernel)