Re: Which compiler for a learner of C?
- From: BRG <brg@xxxxxxxxxxx>
- Date: Thu, 28 Sep 2006 21:18:51 +0100
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
.
- References:
- Which compiler for a learner of C?
- From: pkirk25
- Re: Which compiler for a learner of C?
- From: BRG
- Re: Which compiler for a learner of C?
- From: pkirk25
- Which compiler for a learner of C?
- Prev by Date: Re: C exercises?
- Next by Date: Re: Which compiler for a learner of C?
- Previous by thread: Re: Which compiler for a learner of C?
- Next by thread: Re: Which compiler for a learner of C?
- Index(es):
Relevant Pages
|