bebbo / libnix

libnix (v4): a C link library for AmigaOS/m68k
15 stars 9 forks source link

Possible multiple LVO definitions in compiled Libnix startup files (n_crt0.S) and pre-compiled libamiga.a #82

Closed WDrijver closed 4 months ago

WDrijver commented 4 months ago

Hello Stefan,

I ran into "multiple definition" linker errors when compiling ASM routines using LVO-offset defines from libamiga.a.

After some research I discovered that the Libnix startup files have some of their own LVO defines in t he n_crt0.s code.

Unless my understanding is wrong, I believe these "local" LVO defines are to be disabled, because Libnix itself is compiled with libamiga.a which contains all Amiga related LVO defines.

Greetings,

Willem

bebbo commented 4 months ago

It's not sufficient to comment these out. Use #include <proto/exec.h> in all sources. Or use different names in these startup files.

WDrijver commented 4 months ago

OK, Thanks

On 15 May 2024, at 12:03, bebbo @.***> wrote:

It's not sufficient to comment these out. Use #include <proto/exec.h> in all sources. Or use different names in these startup files.

— Reply to this email directly, view it on GitHub https://github.com/bebbo/libnix/pull/82#issuecomment-2112090143, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOODKHHXRK7VIDS43IUP3OTZCMXGVAVCNFSM6AAAAABHXZXTN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJSGA4TAMJUGM. You are receiving this because you authored the thread.