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

Fix linking errors #2

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

Conversation

osirisinferi
Copy link

I was getting 68 lines of linking errors regarding ldecod when compiling h264-tools, all similar as the following line with only the first source file changing:

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/ldecod.dir/biaridecod.c.o:(.bss+0x0): multiple definition of `ColorComponent'; CMakeFiles/ldecod.dir/annexb.c.o:(.bss+0x0): first defined here

After fixing that, I was getting the following linking error:

/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/ldecod.dir/configfile.c.o:(.bss+0x0): multiple definition of `cfgparams'; CMakeFiles/ldecod.dir/config_common.c.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/12/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/ldecod.dir/decoder_test.c.o:(.bss+0x0): multiple definition of `cfgparams'; CMakeFiles/ldecod.dir/config_common.c.o:(.bss+0x0): first defined here

This PR fixes both errors.

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.

1 participant