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.
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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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 toID3v2_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.