Error Linking with Zig

135 views
Skip to first unread message

Jayadev U

unread,
Nov 15, 2025, 8:21:19 AM (9 days ago) Nov 15
to harbou...@googlegroups.com

Hi,

 

I have been able to compile latest Harbour with Zig.  All well.

 

When trying to link a program I get the error:

 

error: unsupported linker arg: --allow-multiple-definition

 

What is the equivalent flag in Zig ?

 

Best,

 

Jayadev

 

Aleksander Czajczyński

unread,
Nov 16, 2025, 3:30:43 PM (7 days ago) Nov 16
to Harbour Users
Per policy, Zig is not going to expose such flag. With multiple symbols overriding each other, you may not know which one is chosen by the linker. It's not a big deal if both come from single source, but Zig's policy is to not have such disambiguities at all.
Best regards, Aleksander Czajczyński

Jayadev U

unread,
Nov 17, 2025, 9:19:44 AM (6 days ago) Nov 17
to harbou...@googlegroups.com

Hi Aleksander,

 

Thanks for the info.

 

Best,

 

Jayadev

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/7e2a10cb-6b05-46de-b5f6-d2400329dea6n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages