release 与 debug

foolish88 2003-08-10 01:11:06
程序在dubug时有link警告:
warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
但程序一切运行正常
release时有三个警告:
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF
程序运行时 读取数据库中的数据时会报错
就是什么引用的内存不能为read
...全文
38 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
AkiraChing 2003-08-11
  • 打赏
  • 举报
回复
是不是把一些函数放在ASSERT里面运行了,ASSERT在release下是不执行的,注意看看吧
hk028 2003-08-11
  • 打赏
  • 举报
回复
自定义消息传递是否准确?
foolish88 2003-08-11
  • 打赏
  • 举报
回复
现在的主要问题不是那几个警告,是程序有时是报错,有时居然得不到数据库的信息,或是错的,但在debug时是对的。
AkiraChing 2003-08-11
  • 打赏
  • 举报
回复
4075:把property->linker->general->Enable Incremental Linking的No (/INCREMENTAL:NO)改成Default或者yes看看。
4089:这个不要紧
joy0861 2003-08-10
  • 打赏
  • 举报
回复
我也遇到过,不知道怎么解决。
愿意听听~~
foolish88 2003-08-10
  • 打赏
  • 举报
回复
现在是
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
LINK : warning LNK4089: all references to "SHELL32.dll" discarded by /OPT:REF

运行时还是有问题
foolish88 2003-08-10
  • 打赏
  • 举报
回复
能不能说的简单一点,不知道怎么改。
goooool 2003-08-10
  • 打赏
  • 举报
回复
to:Goldbach(hufuping)
我也遇到类似的问题,现在好了,谢谢。
也谢谢 foolish88 (大鸟) 提出问题。
GZCompiler 2003-08-10
  • 打赏
  • 举报
回复
工程设置的问题。

请检查Project -> settings
laodie 2003-08-10
  • 打赏
  • 举报
回复
up
Goldbach 2003-08-10
  • 打赏
  • 举报
回复
warning LNK4098:---------defaultlib "library" conflicts with use of other libs; use /NODEFAULTLIB:library
You are trying to link with incompatible libraries.
Important The run-time libraries now contain directives to prevent mixing different types. You’ll receive this warning if you try to use different types or debug and non-debug versions of the run-time library in the same program. For example, if you compiled one file to use one kind of run-time library and another file to use another kind (for example, single-threaded versus multithreaded) and tried to link them, you’ll get this warning. You should compile all source files to use the same run-time library. See the Use Run-Time Library (MD, /ML, /MT, /LD) compiler options for more information.

You can use the linker’s /VERBOSE:LIB switch to determine which libraries the linker is searching. If you receive LNK4098 and want to create an executable file that uses, for example, the single-threaded, non-debug run-time libraries, use the /VERBOSE:LIB option to find out which libraries the linker is searching. The linker should print LIBC.LIB and not LIBCMT.LIB, MSVCRT.LIB, LIBCD.LIB, LIBCMTD.LIB, or MSVCRTD.LIB as the libraries searched. You can tell the linker to ignore the the incorrect run-time libraries by typing the incorrect libraries in the Ignore Libraries text box on the Link tab of the Settings dialog box in Developer’s Studio or by using the /NODEFAULTLIB:library option with LINK for each library you want to ignore. See the Ignore Libraries (/NODEFAULTLIB) linker option for more information.

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧