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

ld multiple definition error #11

Open
sfmth opened this issue Jan 5, 2024 · 0 comments
Open

ld multiple definition error #11

sfmth opened this issue Jan 5, 2024 · 0 comments

Comments

@sfmth
Copy link

sfmth commented Jan 5, 2024

I was getting an arror during build regarding multiple definitions of a few things.
turns out in a few versions of ld this error can happen: https://stackoverflow.com/questions/15822700/ld-resolve-multiple-definition-manually

$ ld --version
GNU ld (GNU Binutils) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

Modifications to fix the error:
src/makefile.cvc64:
Line 78: LIBS= -lm -ldl -z muldefs -lpthread -lz
Line 136: $(LD) --relocatable -z muldefs -o cvclib.o $(RT_OBJS)

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

No branches or pull requests

1 participant