Menu ▾ ▴

#4272 ASlink: Conflicting fndsym() declaration when built without INDEXLIB

open
nobody
ASlink (2)
Build
5
6 days ago
6 days ago
No

Building ASlink without INDEXLIB fails due to a conflicting declaration of fndsym().

In SVN r17247:

  • sdas/linksrc/aslink.h declares fndsym(char *name).
  • The INDEXLIB implementation in lklibr.c uses char *name.
  • The non-INDEXLIB implementation uses const char *name.

The attached patch makes the declaration conditional on INDEXLIB, matching both existing implementations.

The correction was validated with GCC 16.2.0 on Windows using MinGW-w64. Both INDEXLIB and non-INDEXLIB builds completed successfully.

No changes to the function implementations or linker algorithms are required.

1 Attachments

Discussion


Log in to post a comment.