Open segin opened 4 months ago
Actual command line needed to link on Ubuntu 22.04 LTS:
g++ -g -O2 -lmpg123 -ltag -lvorbisfile -lSDL_gfx -lSDL_ttf -lSDL -lFLAC++ -lFLAC -lopusfile -lSDL_ttf -o psymp3 about.o audio.o display.o exceptions.o fft.o fft_draw.o flac.o font.o libmpg123.o main.o mediafile.o mutex.o player.o playlist.o opus.o rect.o scrobble.o song.o stream.o surface.o system.o track.o truetype.o vorbis.o Widget.o /usr/lib/x86_64-linux-gnu/libSDL-1.2.so.0 /usr/lib/x86_64-linux-gnu/libtag.so.1 /usr/lib/x86_64-linux-gnu/libFLAC++.so.6 /usr/lib/x86_64-linux-gnu/libvorbisfile.so.3 /usr/lib/x86_64-linux-gnu/libSDL_gfx.so.15 /usr/lib/x86_64-linux-gnu/libSDL_ttf.so /usr/lib/x86_64-linux-gnu/libmpg123.so.0 /usr/lib/libopusfile.so.0
The specific command to link on Ubuntu 22.04 is:
g++ -g -O2 -lmpg123 -ltag -lvorbisfile -lSDL_gfx -lSDL_ttf -lSDL -lFLAC++ -lFLAC -lopusfile -lSDL_ttf -o psymp3 about.o audio.o display.o exceptions.o fft.o fft_draw.o flac.o font.o libmpg123.o main.o mediafile.o mutex.o player.o playlist.o opus.o rect.o scrobble.o song.o stream.o surface.o system.o track.o truetype.o vorbis.o Widget.o
Similar occurs on msys2 when building for any target (UCRT64 is my preferred)
None of the external symbols outside of C library calls seem to get resolved unless the command is invoked manually with the external libraries (.dll or .so file) explicitly passed to the linker (or compiler invoking the linker.)