Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid conflicting with HTSlib's kstring.c functions #346

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmarshall
Copy link
Contributor

Some people's programs use both HTSlib and libbwa.a — see e.g. samtools/htslib#693. Unfortunately one function — ksprintf — is defined in both libraries, leading to linker errors.

This happens for ksprintf only, because all the other functions in bwa's kstring.h are declared as static inline.

This PR makes ksprintf() static inline in kstring.h, so that it (like the other bwa/kstring.h functions) won't conflict with similar HTSlib functions. Instead implement it and a new kvsprintf() in terms of a new bwa_kvsprintf() function. Fixes samtools/htslib#693.

Make ksprintf() static inline in kstring.h, so that it (like the other
bwa/kstring.h functions) won't conflict with similar HTSlib functions.
Instead implement it and kvsprintf() in terms of a new bwa_kvsprintf()
function. Fixes samtools/htslib#693.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate symbols with libbwa
1 participant