harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li" <liyilei1...@gmail.com>
Subject Re: [classlib][build]
Date Tue, 01 May 2007 03:49:27 GMT
 It is a problem.
 Most of us use VS2003 and some functions used by Harmony is regarded as not
safe by VS2005.
 You can try to add  -D_CRT_SECURE_NO_DEPRECATE in the flag of
HYCOMMONCFLAGS in  trunk/depends/defines.mak,

 or like the win64 platform just close warning in the same file:

 !IF "$(HY_OS)-$(HY_ARCH)" == "windows-x86_64"

And test if it works.

Good luck!

On 5/1/07, Naveen Neelakantam <neelakan@uiuc.edu> wrote:
> I am seeing the following error whenever trying to build the classlib
> using Visual Studio 2005 on 32-bit Windows XP.  I realize that VS2003
> is the "recommended" SDK, but I don't have access to it.
> I tried adding "#define _CRT_SECURE_NO_DEPRECATE 1" to strhelp.c, but
> that didn't help.  Has anyone else seen this?
> Naveen
> -build-native:
>      [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -
> FIsehmap.h -D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WIN95 -
> D_WIN32_WINDOWS=0x0400 /D_WIN32_DCOM -D_WIN32_IE=0x0500 -
> DWINVER=0x0400 -Zi -Od -WX -GF -Gs -MD -Zm400  -D_DLL -D_MT -
> D_WINSOCKAPI_   /IC:\Sandbox\Harmony\trunk\working_classlib\deploy
> \include /IC:\Sandbox\Harmony\trunk\working_classlib\deploy\jdk
> \include /I. /I..\shared\ -Fo..\shared\strhelp.obj ..\shared\strhelp.c
>      [exec] strhelp.c
>      [exec] ..\shared\strhelp.c(73) : error C2220: warning treated
> as error - no 'object' file generated
>      [exec] ..\shared\strhelp.c(73) : warning C4996: 'strcat' was
> declared deprecated
>      [exec]         C:\Program Files\Microsoft Visual Studio 8\VC
> \INCLUDE\string.h(78) : see declaration of 'strcat'
>      [exec]         Message: 'This function or variable may be
> unsafe. Consider using strcat_s instead. To disable deprecation, use
> _CRT_SECURE_NO_DEPRECATE. See online help for details.'
>      [exec] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft
> Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
>      [exec] Stop.

Leo Li
China Software Development Lab, IBM

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message