For reference, I used this tutorial:
https://en.sfml-dev.org/forums/index.php?topic=17683.0I've been using other SFML modules like System and Graphics with no issue. However, whenever I try to use something from the Audio module I get a bunch of undefined reference errors on building, e.g. ;
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:189: undefined reference to `FLAC__stream_decoder_new'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:197: undefined reference to `FLAC__stream_decoder_init_stream'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:200: undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:203: undefined reference to `FLAC__stream_decoder_finish'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:204: undefined reference to `FLAC__stream_decoder_delete'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderFlac.cpp.obj): In function `sf::priv::SoundFileReaderFlac::open(sf::InputStream&, sf::SoundFileReader::Info&)':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:230: undefined reference to `FLAC__stream_decoder_new'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:239: undefined reference to `FLAC__stream_decoder_init_stream'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:242: undefined reference to `FLAC__stream_decoder_process_until_end_of_metadata'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderFlac.cpp.obj): In function `sf::priv::SoundFileReaderFlac::seek(unsigned long long)':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:270: undefined reference to `FLAC__stream_decoder_seek_absolute'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderFlac.cpp.obj): In function `sf::priv::SoundFileReaderFlac::read(short*, unsigned long long)':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:308: undefined reference to `FLAC__stream_decoder_process_single'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:312: undefined reference to `FLAC__stream_decoder_get_state'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderFlac.cpp.obj): In function `sf::priv::SoundFileReaderFlac::close()':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:325: undefined reference to `FLAC__stream_decoder_finish'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderFlac.cpp:326: undefined reference to `FLAC__stream_decoder_delete'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderOgg.cpp.obj): In function `sf::priv::SoundFileReaderOgg::check(sf::InputStream&)':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderOgg.cpp:77: undefined reference to `ov_test_callbacks'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderOgg.cpp:79: undefined reference to `ov_clear'
C:\Users\Admin\Documents\SFML-2.4.2\lib/libsfml-audio-s-d.a(SoundFileReaderOgg.cpp.obj): In function `sf::priv::SoundFileReaderOgg::open(sf::InputStream&, sf::SoundFileReader::Info&)':
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderOgg.cpp:109: undefined reference to `ov_open_callbacks'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderOgg.cpp:117: undefined reference to `ov_info'
D:/sfml-release/_Sources/SFML/src/SFML/Audio/SoundFileReaderOgg.cpp:120: undefined reference to `ov_pcm_total'
I'm using Eclipse Neon on Windows, I've included all the SFML modules in the Eclipse GCC C++ COmpiler and MinGW C++ linker settings the same way. Haven't had any issues with the library modules until this issue popped up.
Why is the undefined reference pointing to the D drive? Why doesn't the Audio module import work when all the other SFML modules worked?