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

B

Bit Byte

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)(const char*, const Scope, const int);
typedef void (__stdcall *DoubleCallback)(const char*, const Scope, const
double);

.....

etc
 
B

Ben Voigt

Bit Byte said:
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)(const 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top