error C4430: missing type specifier - int assumed. Note: C++ doesnot support default-int

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bit Byte

    #1

    error C4430: missing type specifier - int assumed. Note: C++ doesnot support default-int

    The following function pointer declarations used to compile without any
    problems in VS7.1, now when I try to compile in VS8, I get a C4430
    error. Anyone knows why, and how to fix it (without using pragma disable)?

    //My header file ...

    /* Prototypes for subscription callbacks */
    typedef void (__stdcall *IntCallback)(c onst char*, const Scope, const int);
    typedef void (__stdcall *DoubleCallback )(const char*, const Scope, const
    double);

    .....

    etc
  • Ben Voigt

    #2
    Re: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


    "Bit Byte" <root@your.box. comwrote in message
    news:FaWdnQbwsM JzZX_YnZ2dneKdn ZypnZ2d@bt.com. ..
    The following function pointer declarations used to compile without any
    problems in VS7.1, now when I try to compile in VS8, I get a C4430 error.
    Anyone knows why, and how to fix it (without using pragma disable)?
    >
    //My header file ...
    >
    /* Prototypes for subscription callbacks */
    typedef void (__stdcall *IntCallback)(c onst char*, const Scope, const
    int);
    typedef void (__stdcall *DoubleCallback )(const char*, const Scope, const
    double);
    probably the type "Scope" is not declared, so the compiler thinks that Scope
    is the variable name and that the type is missing.


    Comment

    Working...