C2065 Compiler error.
-
Hello, there, I got a C2065 compiler error. The error message is error C2065: 'RBN_CHEVRONPUSHED' : undeclared identifier But when I go to that line and right click on RBN_CHEVRONPUNSHED and then click on "Go to definition of RBN_CHEVRONPUSHED" I can actually go to the CommCtrl.h and see the definition. This is very strange. How could I solve the problem? Thanks a lot in advance Bin
-
Hello, there, I got a C2065 compiler error. The error message is error C2065: 'RBN_CHEVRONPUSHED' : undeclared identifier But when I go to that line and right click on RBN_CHEVRONPUNSHED and then click on "Go to definition of RBN_CHEVRONPUSHED" I can actually go to the CommCtrl.h and see the definition. This is very strange. How could I solve the problem? Thanks a lot in advance Bin
Your compiler knows where the file is, but your code is not including the file, so it doesn't. Include the file, and try again. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Your compiler knows where the file is, but your code is not including the file, so it doesn't. Include the file, and try again. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Thanks for your reply. I put the #include in the StdAfx.h file and also in that file with error. But I still got the same compiler error. I am so confused. Thanks again for your reply. Bin
Not a solution, but a step. Is the error in your own code ? If so, try copying the #define into the top of your .cpp file and see if it compiles. If so, then it cannot see that file, for whatever reason. If not, the problem is somewhere else, and the error message is just not very helpful. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Not a solution, but a step. Is the error in your own code ? If so, try copying the #define into the top of your .cpp file and see if it compiles. If so, then it cannot see that file, for whatever reason. If not, the problem is somewhere else, and the error message is just not very helpful. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Thanks for your reply. I put the #include in the StdAfx.h file and also in that file with error. But I still got the same compiler error. I am so confused. Thanks again for your reply. Bin
If you change something in
stdafx.h
you must recompile (manually) the filestdafx.cpp
to update the precompiled header. Robert-Antonio "Love without sex is like a fish without antlers"