Successful Debug Build, but got Errors during Release Build
-
Hi There. I am using sone 3rd party libraries and am able to successfully Debug build my application. Now, when I try to Release build the same piece of code, I am getting below error messages. Let me list few of them...
error C2146: syntax error : missing ';' before identifier 'HOPTIONSET'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2065: 'VWCALLBACKPROC' : undeclared identifier
......................................
......................................
......................................So On....Please provide some pointers/suggestions for the same. Thanks PanB
-
Hi There. I am using sone 3rd party libraries and am able to successfully Debug build my application. Now, when I try to Release build the same piece of code, I am getting below error messages. Let me list few of them...
error C2146: syntax error : missing ';' before identifier 'HOPTIONSET'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C2065: 'VWCALLBACKPROC' : undeclared identifier
......................................
......................................
......................................So On....Please provide some pointers/suggestions for the same. Thanks PanB
Make sure that your project options are the same for debug and release (concerning the include directories, the lib directories, additional dependencies, ...). In brief: everything you changed in the configuration for debug mode should also be done for the release mode.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
Make sure that your project options are the same for debug and release (concerning the include directories, the lib directories, additional dependencies, ...). In brief: everything you changed in the configuration for debug mode should also be done for the release mode.
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++ -
I have crossed checked them, they are absolutely similar to each other. Any other pointer/suggestion will be really helpful. Thanks.
Then look through the headers, looking for lines like:
#ifdef DEBUG
struct _some_struct_that_the_compiler_can't_find_in_release_
{
int evil;
};
#endifI hope that made the point. Don't read the whole thing by eye - get the computer to search for terms from the error messages, and then read up from there. Hope that helps, Iain.
In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
-
Then look through the headers, looking for lines like:
#ifdef DEBUG
struct _some_struct_that_the_compiler_can't_find_in_release_
{
int evil;
};
#endifI hope that made the point. Don't read the whole thing by eye - get the computer to search for terms from the error messages, and then read up from there. Hope that helps, Iain.
In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
Thanks for the reply guys. BAD NEWS> I have cross checked project settings - Debug/Release i.e., (a)C/C++ > Additional Include Directories (b)Linker > General > Additional Library Directories Linker > Input > Additional Dependencies Should I need to check some other property apart from mentioned above? Also, I am not able to find DEBUG in my full code/solution. :( Just want to know, I am using same 3rd party dlls/libs for Debug/Release mode. Can they create this type of problem? Thanks PanB
-
Thanks for the reply guys. BAD NEWS> I have cross checked project settings - Debug/Release i.e., (a)C/C++ > Additional Include Directories (b)Linker > General > Additional Library Directories Linker > Input > Additional Dependencies Should I need to check some other property apart from mentioned above? Also, I am not able to find DEBUG in my full code/solution. :( Just want to know, I am using same 3rd party dlls/libs for Debug/Release mode. Can they create this type of problem? Thanks PanB
Guys just an update >>>> If I copy Preprocessor Defn and Runtime Library settings from Debug and copy them for Release, then I got success with Release Build but at the time execution my application just blow up.... Any clues, What I can do at the minimal level to make my Release build a success and also can execute my Release type application. Thanks PanB
-
Guys just an update >>>> If I copy Preprocessor Defn and Runtime Library settings from Debug and copy them for Release, then I got success with Release Build but at the time execution my application just blow up.... Any clues, What I can do at the minimal level to make my Release build a success and also can execute my Release type application. Thanks PanB
Check the whole code out and look for uninitialized variables (specially local ones). For example you may have such a thing somewhere in your code: CString strVariable ; instead of: CString strVariable = _T("");