can anybody help me out with this error:
-
assert(0); /// for this statement I am getting the following error error C2065: '__MODULE__' : undeclared identifier:confused: Thanks in advance Ashok
Looks like you're missing a #include.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Looks like you're missing a #include.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Looks like you're missing a #include.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Christian Graus wrote:
Looks like you're missing a #include.
Seems that would have resulted in: error C2065: 'assert' : undeclared identifier instead. With VS6,
__MODULE__
is not even part of theassert()
macro so I'm not sure what to even suggest.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
assert(0); /// for this statement I am getting the following error error C2065: '__MODULE__' : undeclared identifier:confused: Thanks in advance Ashok
Where did you get the __MODULE__ predefined macro from? If you right click on "assert" and choose "Go to Declaration" then what file do you end up in? It should be assert.h ( which you should be including with #include <assert.h> ). In the RTL code with VS2003, it only uses these macros: __FILE__ and __LINE__
"If you can dodge a wrench, you can dodge a ball."
-
Where did you get the __MODULE__ predefined macro from? If you right click on "assert" and choose "Go to Declaration" then what file do you end up in? It should be assert.h ( which you should be including with #include <assert.h> ). In the RTL code with VS2003, it only uses these macros: __FILE__ and __LINE__
"If you can dodge a wrench, you can dodge a ball."
-
ya exactly, assert(0); and printf("\nHere %s %d \n",__FILE__,__LINE__); // for both statements I am getting the same error. I included assert.h and tried but am unable to find the __MODULE__ predefined macro.. thanks in advance, Ashok
Hmm I can't reproduce this at all. It works for me in console and GUI app builds no problems. In Google search __MODULE__ shows up related to linux and python. It's nowhere in the CRT or Platform SDK headers though. :confused:
"If you can dodge a wrench, you can dodge a ball."