Board index » delphi » Linker error "Assertion failed ..."

Linker error "Assertion failed ..."

Hello out there,
I needed to re-structure a project in BC++5.02 - someone had decided
to rename library functions and arrange them in different files than
then they were before. Ok, they had their reasons.
Now, after adapting the files that *use* those functions I cannot link
my application anymore. I can compile all files, but the second linker
pass tells me

Fatal: Assertion failed: pSeg && (pSeg->sclass == SEG_CODE) at
"IMPORT.CPP", line 1486
Fatal: Assertion failed: secLSymPtr[sec] at "ILINKDBG.C", line 2987
Fatal: Access violation.  Program terminated.
Error:  Error: Internal failure -- retrying link...
Fatal: Assertion failed: pSeg && (pSeg->sclass == SEG_CODE) at
"IMPORT.CPP", line 1486
Fatal: Assertion failed: secLSymPtr[sec] at "ILINKDBG.C", line 2987
Fatal: Access violation.  Program terminated.

I am sort of out of ideas what to do. Any hint or idea will be greatly
appreciated.
Helmut

 

Re:Linker error "Assertion failed ..."


Quote
On Sat, 16 Mar 2002 18:49:10 GMT, hgi...@ratiosoft.com (Helmut Giese) wrote:
>BC++5.02 - I cannot link
>the second linker pass tells me
>Fatal: Assertion failed: pSeg && (pSeg->sclass == SEG_CODE) at
[snip]
>Error:  Error: Internal failure -- retrying link.
[snip]
>Fatal: Access violation.  Program terminated.

If using incremental linking (ilink32), disable it and see if tlink32
works any better.

--
Wayne A. King
(ba...@torfree.net, wayne.k...@ablelink.org,
 wak...@idirect.com, Wayne_A_K...@compuserve.com)

Re:Linker error "Assertion failed ..."


On Sat, 16 Mar 2002 20:09:49 GMT, wak...@idirect.com (Wayne A. King)
wrote:

Quote
>On Sat, 16 Mar 2002 18:49:10 GMT, hgi...@ratiosoft.com (Helmut Giese) wrote:

>>BC++5.02 - I cannot link
>>the second linker pass tells me
>>Fatal: Assertion failed: pSeg && (pSeg->sclass == SEG_CODE) at
>[snip]
>>Error:  Error: Internal failure -- retrying link.
>[snip]
>>Fatal: Access violation.  Program terminated.

>If using incremental linking (ilink32), disable it and see if tlink32
>works any better.

Not really,
now it aborts the whole IDE after linker pass 2. :(
Helmut

Re:Linker error "Assertion failed ..."


I couldn't solve the problem, but the target in question was a 32 bit
console app - so I just use Builder for it. So, problem circumvented.
(The principal targets in this project are for a 16 bit embedded
system, therefore the need for BC++ 5.02).

Best regards
Helmut

Other Threads