Thursday, July 9, 2009

In Borland C++, how can I resolve the following problem : TOO MANY TYPES IN DECLARATION?

someone plzzzz tell me...

In Borland C++, how can I resolve the following problem : TOO MANY TYPES IN DECLARATION?
Unless you post the code so I can take a look, then I'll give you this answer:





Remove the for expression on line 6 and replace it with a malloc call. Free the malloc segment in your drop_shoe() method and make sure you set the volatile int to 0 before you return.
Reply:A common and difficult to spot example being when the compiler outputs these error messages





Too many Types in declaration


Type ‘TMyClass’ may not be defined here


‘My method’ is not a member of ‘MyClassName’





These errors can all be caused by forgetting to put a closing ; after the closing } in the header file.





When it happens it’s exceedingly annoying as the error messages are in no way related to the actual error.


0 comments:

Post a Comment