[cfe-dev] Declaration of MSVC internal functions
bop at gmb.dk
Wed Jan 19 04:43:50 PST 2011
On 19 jan 2011 12:18 "Benoit Perrot" <benoit at lrde.epita.fr> wrote:
> While experimenting with Clang and MSVC 9 (and among the different
> issues), including "iosfwd" generates the following error:
> C:\Program Files\Microsoft Visual Studio 9.0\VC\include/iosfwd(219) :
> error: no member named '_invalid_parameter_noinfo' in the global
> did you mean '_invalid_parameter_handler'?
> So, here is the question: shall this function (and the
> others that can be found in "internal.h") be considered as a builtin?
> Adding it to "Basic/Builtins.def" as follows:
> // Random Microsoft VC9 runtime builtins.
> BUILTIN(_invalid_parameter_noinfo, "v.", "n")
> silences the error; but should'nt it be activated only when
> Would'nt it be a better idea to silently include "crt/src/internal.h"
> when some appropriated cocktail of driver options are activated?
The source for the runtime is not included with all the Visual Studio versions, especially not with the Express edition. Makes it a less good idea. :-)
More information about the cfe-dev