Re: Which compiler for a learner of C?



pkirk25 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

The IDE will normally compile files with the 'cpp' extension as C++
rather than C.

Somewhat annoyingly it will even compile files with the 'c' extension as
C++ as well unless you turn off this 'feature' in the property page for
the project and/or file concerned (this option is under C/C++|Advanced
in the property dialogue).

Why it has been set to behave like this as default is beyond me (I don't
think this is caused by my own configuration but it might be).

Brian
.



Relevant Pages

  • OpenGL extensions in Linux (Its not hard?)
    ... glRasterPos2d to glWindowPos2d. ... I didn't want to write a bunch of extension checking and loading code ... but at least my compile was now ... Windows OpenGL library, except that the function pointers returned are ...
    (comp.graphics.api.opengl)
  • Porting *nix binary extensions to Win32
    ... example extension I just wrote under OS X and compile it on Windows. ... Is it possible to create a Win32 dll that can be used by ANY Tcl/Tk ... Can the ActiveState distribution use a mingw-compiled extension? ...
    (comp.lang.tcl)
  • [ANN:] RealThinClient Core 1.3 > write ISAPI Extensions
    ... Now you can write one RTC Server application and compile it as ISAPI DLL ... Extension, which can be deployed with any ISAPI-capable Web Server (for ... you can now compile your existing RTC applications as ISAPI ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Max value of typedef-ed type?
    ... I'm writing an extension for Python. ... The extension should compile on ... anything that supports SysV IPC. ...
    (comp.lang.c)
  • Re: Numeric compiling problem under QNX 4.25
    ... compile Numeric-24.2 under QNX4.25 with python 2.2. ... Can you compile any other extension ... Python 2.2 works when I install python on QNX. ...
    (comp.lang.python)

Quantcast