larsbs / id3v2lib

id3v2lib is a library written in C to read and edit id3 tags from mp3 files.
BSD 2-Clause "Simplified" License
128 stars 44 forks source link

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

Open sherbet-head opened 1 year ago

sherbet-head commented 1 year ago

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 functiontagger': file_functions.c:(.text+0x718): undefined reference to ID3v2_read_tag' /usr/bin/ld: file_functions.c:(.text+0x728): undefined reference toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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.