挖土

Coding for fun.
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Linker problems with Borland builder

Posted on 2010-02-25 15:31  挖土.  阅读(1085)  评论(2编辑  收藏  举报

 

When building a project in Borland Builder (version 5) you can get a linker error such as:

 [Linker Error] Fatal: Error detected (LME351)
[Linker Warning] Cannot reserve virtual memory at addr 461A0000 for -1703936 bytes (errcode 87)

This is a known bug in Borland Builder, and the reason is that the debug information file is too big. Every project with forms create a debug file (a *.tds file), when the size of this file exceeds roughly 32 MB the linker throws an error. The solution is to disable the debugging ability of forms with many controls:

  • ** Right-click a form in the "Project Manager", select "Edit local options..." and un-check the "Debug information" check box

  • ** Delete the project's *.tds file and the vcl50*-files in the Borland installation directory (e.g. C:\Program Files\Borland\CBuilder5\Lib\vcl50.*)

  • ** Re-compile all files you have changed debug settings on