Jump to content
A.M. Hoornweg

Linker error L902

Recommended Posts

Hello all,

 

I have ported a large project (32-bit, 1.4 million LOC) from Delphi 11 to Delphi 12 (enterprise).

 

Performing a "full build" works fine, but a "make" produces linker error L902 every time; now just imagine you're debugging something and have to do a full build all the time. It's simply no fun.

I have never had this problem in Delphi 11.   Is there any way I can circumvent this problem ?

 

 

Share this post


Link to post

Is this "Classic" or "Clang" 32 bit ?

Are you using "incremental linking" ? (if so, does it solve your issue if you change the project setting to "incremental linking = false" ?

Ooops - sorry - this is Delphi code not C++ - please ignore me !

 

Edited by Roger Cigol

Share this post


Link to post

FOUND!

 

The L902 linker error disappears if I set the compiler switch "code inlining control"  to OFF!  I can reproduce this in several 32-bit programs that had this problem. Kudos to my colleague Ralf Claussen who discovered this by chance.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×