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

Compile error using clang on Debian bullseye Arm machine. #49

Open
sherbet-head opened this issue Jul 11, 2023 · 0 comments
Open

Compile error using clang on Debian bullseye Arm machine. #49

sherbet-head opened this issue Jul 11, 2023 · 0 comments

Comments

@sherbet-head
Copy link

file_functions.c:138:10: warning: implicit declaration of function 'ID3v2_tag_new' is invalid in C99 [-Wimplicit-function-declaration] tag = ID3v2_tag_new(); ^ file_functions.c:138:8: warning: incompatible integer to pointer conversion assigning to 'ID3v2_Tag *' (aka 'struct _ID3v2_Tag *') from 'int' [-Wint-conversion] tag = ID3v2_tag_new(); ^ ~~~~~~~~~~~~~~~ 2 warnings generated. /usr/bin/ld: /tmp/file_functions-695003.o: in function tagger':
file_functions.c:(.text+0x718): undefined reference to ID3v2_read_tag' /usr/bin/ld: file_functions.c:(.text+0x728): undefined reference to ID3v2_tag_new'
/usr/bin/ld: file_functions.c:(.text+0x768): undefined reference to ID3v2_to_unicode' /usr/bin/ld: file_functions.c:(.text+0x77c): undefined reference to ID3v2_Tag_set_album_artist'
/usr/bin/ld: file_functions.c:(.text+0x790): undefined reference to ID3v2_to_unicode' /usr/bin/ld: file_functions.c:(.text+0x7a4): undefined reference to ID3v2_Tag_set_track'
/usr/bin/ld: file_functions.c:(.text+0x7bc): undefined reference to ID3v2_to_unicode' /usr/bin/ld: file_functions.c:(.text+0x7d0): undefined reference to ID3v2_Tag_set_album'
/usr/bin/ld: file_functions.c:(.text+0x7e4): undefined reference to ID3v2_to_unicode' /usr/bin/ld: file_functions.c:(.text+0x7f8): undefined reference to ID3v2_Tag_set_title'
/usr/bin/ld: file_functions.c:(.text+0x80c): undefined reference to ID3v2_to_unicode' /usr/bin/ld: file_functions.c:(.text+0x820): undefined reference to ID3v2_Tag_set_artist'
/usr/bin/ld: file_functions.c:(.text+0x838): undefined reference to ID3v2_write_tag' clang: error: linker command failed with exit code 1 (use -v to see invocation)
Let me know if you need any more information. I also tried compiling using gcc and got very similar 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

No branches or pull requests

1 participant