Главная страница | назад





Article #16777: Fatal General error in .#nn files or assert failures from ilink

 Question and Answer Database

FAQ1777C.txt   Fatal General error in .#nn files or assert failures from ilink 
Category   :IDE
Platform    :All
Product    :C++Builder  1.x

Question:
Problems at link time
Linker Fatal General error in .#nn files or assert failures from ILINK

Problem description:
At link time 
Fatal General error in module ..\lib\vcld.#02. Sometimes it is vcld.#00 or
vcld.#01. 

Using the incremental linker the error is
Fatal: Assertion failed: recLen == 0 at "IMPORT.CPP", line 486"
 

Answer:


There is a known problem that shows up when using typedefed instantiations
of templates in headers with precompiled headers and debug info is turned 
on.  The problem will show up as general failures in .#nn with the standard
linker or asserts with the incremental linker.

The workaround is to manage your precompiled headers with #pragma
hdrstop being sure to exclude the header(s) with template typedefs
from the pch.

#include 
#include "mypch.h" // headers that seldom change and no templates
#pragma hdrstop
#include "mytemplates.h" 


Note that the problem is really with the external-type OBJ, those .#nn files
( -He in the readme ). So you could also just turn that switch off. 
Open the .MAK file and add -He- to the CFLAG1 line.
 

7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99