error C1189: #error : SMILE : in release build _SECURE_SCLC

The engine.
Post Reply
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

error C1189: #error : SMILE : in release build _SECURE_SCLC

Post by frito »

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
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: error C1189: #error : SMILE : in release build _SECURE_

Post by shooltz[BayesFusion] »

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"
That's because you didn't define _SECURE_SCL=0 for the release build.

(when building Debug I get many "error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': ...", then some LNK2001 LNK2019 LNK1120).
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?
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

Re: error C1189: #error : SMILE : in release build _SECURE_

Post by frito »

Hi shooltz
shooltz wrote:
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"
That's because you didn't define _SECURE_SCL=0 for the release build.
Where/how do I do taht?
(when building Debug I get many "error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': ...", then some LNK2001 LNK2019 LNK1120).
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?
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.
TY
shooltz[BayesFusion]
Site Admin
Posts: 1457
Joined: Mon Nov 26, 2007 5:51 pm

Re: error C1189: #error : SMILE : in release build _SECURE_

Post by shooltz[BayesFusion] »

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)
frito
Posts: 32
Joined: Wed Dec 12, 2007 8:51 pm

Re: error C1189: #error : SMILE : in release build _SECURE_

Post by frito »

shooltz 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)
THX shooltz

Now it all builds but i had to add additional path in linker else some lib couldnt be found.
Post Reply