Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I declared char DEBUG=1;
but it shows
VB
error C2513: 'char' : no variable declared before '='
Posted

1 solution

You chose an unfortunate name for your variable, probably it clashes with a defined macro name, that is in a certain header file your project (either directly or indirectly) includes, there is something like
#define DEBUG 


I would use a 'less dangerous name', like, for instance mydebug.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900