找回密码
 注册
搜索
查看: 2242|回复: 1

用VS2008生成6.1的DLL出现很多警告

[复制链接]
发表于 2012-5-21 06:29:36 | 显示全部楼层 |阅读模式
本帖最后由 kiwcs 于 2012-5-21 06:31 编辑

1>------ 已启动全部重新生成: 项目: user, 配置: Debug Win32 ------
1>正在删除项目“user”(配置“Debug|Win32”)的中间文件和输出文件
1>正在编译...
1>user.cpp
1> WINVER not defined. Defaulting to 0x0600 (Windows Vista)
1>c:\xajh61\user\user.cpp(84) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 参见“strcpy”的声明
1>c:\xajh61\user\user.cpp(190) : warning C4244: “初始化”: 从“time_t”转换到“int”,可能丢失数据
1>c:\xajh61\user\user.cpp(214) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 参见“strcpy”的声明
1>c:\xajh61\user\user.cpp(705) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : 参见“fopen”的声明
1>c:\xajh61\user\user.cpp(709) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : 参见“fopen”的声明
1>c:\xajh61\user\user.cpp(721) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : 参见“fopen”的声明
1>c:\xajh61\user\user.cpp(2863) : warning C4244: “初始化”: 从“time_t”转换到“long”,可能丢失数据
1>正在编译资源清单...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>正在链接...
1>   正在创建库 .\Debug/user.lib 和对象 .\Debug/user.exp
1>正在嵌入清单...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>生成日志保存在“file://C:\xajh61\user\Debug\BuildLog.htm”
1>user - 0 个错误,7 个警告
========== 全部重新生成: 成功 1 个,失败 0 个,跳过 0 个 ==========
请问这样有没有影响 ?算生成成功吗  用VS2008的时候 提示要转换才能打开。会不会不兼容?
发表于 2012-5-21 11:08:32 | 显示全部楼层
不用理会它,另外你不要编译成debug的,要编译成release的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|宁德市腾云网络科技有限公司 ( 闽ICP备2022007940号-5|闽公网安备 35092202000206号 )

GMT+8, 2025-5-5 03:53 , Processed in 0.015105 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表