Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
weakpackageunit contains global data
#1
I am unable to compile my IntraWeb app. I get $weakpackageunit windows contains global data
Reply
#2
(05-25-2026, 10:39 AM)tobenschain Wrote: I am unable to compile my IntraWeb app. I get $weakpackageunit windows contains global data

Which unit/package, exactly, is reporting the error? What is the complete error message, verbatim?

Is this a problem with Indy or IntraWeb? I see you posted this error in the Indy forum on Delphi-Praxis, but you didn't post it in the Indy forum on this server.

Reply
#3
(05-25-2026, 11:40 PM)rlebeau Wrote: Which unit/package, exactly, is reporting the error? What is the complete error message, verbatim?

[dcc32 Error] Winapi.Windows.pas(44173): E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data
Reply
#4
(05-26-2026, 11:44 AM)tobenschain Wrote: [dcc32 Error] Winapi.Windows.pas(44173): E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data

So, not even a problem with Indy or IntraWeb, but with the RTL. Then it needs to be reported to Embarcadero.

Are you able to reproduce this in a new simple project that can then be given to them to investigate?

Reply
#5
@tobenschain
I have opened a ticket for it:

RSS-5450: E2203 $WEAKPACKAGEUNIT 'Winapi.Windows' contains global data

You should add a test project to it that reproduces the error.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)