what is undeclared identifier

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2006
Posts: 4
Reputation: yadavvirendra is an unknown quantity at this point 
Solved Threads: 1
yadavvirendra's Avatar
yadavvirendra yadavvirendra is offline Offline
Newbie Poster

what is undeclared identifier

 
0
  #1
Nov 28th, 2006
im currently working on mechanical design based project . plateform is windows & language is c++ ,& for gui(graphical user interface) vc++, in vc++ when i run the code in debug mode it runs successfully,but when i run the same code in release mode it mostly create error like " undefined identifier" for some variable name . so dear sirs why this error is comes in only release mode .where is the problem actually im not writting code here due to security reason of my company they r not given this grant to me .
wiating for the ur precious reply.

virendra
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,474
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1478
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: what is undeclared identifier

 
0
  #2
Nov 28th, 2006
undefined identifier means a variable is being used before it is declared. If it compiles ok in debug mode and not release mode then there is probably a conditiional compile statement somewhere, something like this:
  1. #ifdef _DEBUG
  2. int x;
  3. #endif


I would compile again for debug, move the cursor to the line and symbol name where the error uccurs, right click with mouse, then select "Go to definition" from the popup menu. VC++ IDE will move the cursor to the place where the symbol is defined. There you will probably find a conditional compile statement similar to the one I posted above.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC