Hi
I keep getting "error C1189: #error : SMILE : in release build _SECURE_SCL must be defined and set to zero for VS.NET 2005 or later ..."
Am running VS 2010 VC++.
(when building Debug I get many "error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': ...", then some LNK2001 LNK2019 LNK1120).
When I compile there is no error...
What should I put into Linker>advanced>entry point?
thanks
O
error C1189: #error : SMILE : in release build _SECURE_SCLC
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Re: error C1189: #error : SMILE : in release build _SECURE_
That's because you didn't define _SECURE_SCL=0 for the release build.frito wrote:I keep getting "error C1189: #error : SMILE : in release build _SECURE_SCL must be defined and set to zero for VS.NET 2005 or later"
This sounds like mismatched library build (debug vs. release). Are you using smile.h and its autolink features, or trying to set up the linker settings manually?(when building Debug I get many "error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': ...", then some LNK2001 LNK2019 LNK1120).
Re: error C1189: #error : SMILE : in release build _SECURE_
Hi shooltz
TY
Where/how do I do taht?shooltz wrote:That's because you didn't define _SECURE_SCL=0 for the release build.frito wrote:I keep getting "error C1189: #error : SMILE : in release build _SECURE_SCL must be defined and set to zero for VS.NET 2005 or later"
I wish I knew, I just included smile.h and lib in linker, other linker settings adjustments done upong solving error messages as they came.This sounds like mismatched library build (debug vs. release). Are you using smile.h and its autolink features, or trying to set up the linker settings manually?(when building Debug I get many "error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': ...", then some LNK2001 LNK2019 LNK1120).
TY
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Re: error C1189: #error : SMILE : in release build _SECURE_
The information below is copied directly from SMILE download page:
SMILE distributions for Visual C++ contais three sets of libraries: two optimized builds for static and dynamic CRT, and another unoptimized build linking against debug DLL runtime without NDEBUG defined.
smile.h and smilearn.h contain autolink #pragma directives and will select correct library, depending on CRT configuration of your project.
DO NOT add smile.lib as additional linker input in project settings - smile.h takes care of that.
Please note that release builds are compiled with _SECURE_SCL=0 on VC 8.0 and later. We recommend adding this option in preprocessor definition section of project settings (only in release configuration)
Re: error C1189: #error : SMILE : in release build _SECURE_
THX shooltzshooltz wrote:The information below is copied directly from SMILE download page:
SMILE distributions for Visual C++ contais three sets of libraries: two optimized builds for static and dynamic CRT, and another unoptimized build linking against debug DLL runtime without NDEBUG defined.
smile.h and smilearn.h contain autolink #pragma directives and will select correct library, depending on CRT configuration of your project.
DO NOT add smile.lib as additional linker input in project settings - smile.h takes care of that.
Please note that release builds are compiled with _SECURE_SCL=0 on VC 8.0 and later. We recommend adding this option in preprocessor definition section of project settings (only in release configuration)
Now it all builds but i had to add additional path in linker else some lib couldnt be found.