harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen Neelakantam <neela...@uiuc.edu>
Subject [classlib][build] compiler error with Visual Studio 2005
Date Tue, 01 May 2007 02:18:23 GMT
updated subject line

On Apr 30, 2007, at 8:57 PM, Naveen Neelakantam 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.
>


Mime
View raw message