| | |
what is undeclared identifier
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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 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:
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.
C++ Syntax (Toggle Plain Text)
#ifdef _DEBUG int x; #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.
![]() |
Similar Threads
- undeclared identifier error (C)
- wsaData : undeclared identifier (C)
- plzzz help! i did the work need (C)
- c++ compiling problem (C++)
- compilers for c++ (C++)
Other Threads in the C++ Forum
- Previous Thread: Need help Writing a code which reads text files.
- Next Thread: Dll's and problems with them
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






