1
votes

I'm getting an error on Line 266.

WorldSession.h(266): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
WorldSession.h(266): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

These are the two errors that I get from Visual C++ Studio 2010.

extern OpcodeHandler WorldPacketHandlers[NUM_MSG_TYPES];
void CapitalizeString(string & arg);

The first one is line 266; The second line is 267. I'm not sure what is the problem as I'm confused. Could anyone help out, thanks!

1
why a ; in the middle of 266? - dzada
What I told yzt below, I added that semicolon there because I kept getting an error says I was missing a semicolon to the left of WorldPacketHandlers. I know I'm confused why its there. - user1797587
Post a complete example that exhibits the error. - Alan Stokes
Do you have any macros that redefine OpcodeHandler? - Chris Bednarski
My project is really big with over at least 700 files. Not sure about that. - user1797587

1 Answers

1
votes

This line:

extern OpcodeHandler; WorldPacketHandlers[NUM_MSG_TYPES];

should probably be

extern OpcodeHandler /*no semicolon here*/ WorldPacketHandlers[NUM_MSG_TYPES];