I have compiled SFML 2.3.1 for Visual Studio 2015 Community.
It gives me these errors:
1>flac.lib(stream_decoder.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _FLAC__stream_decoder_reset
1>flac.lib(stream_encoder.obj) : error LNK2001: unresolved external symbol ___iob_func
1>flac.lib(win_utf8_io.obj) : error LNK2001: unresolved external symbol ___iob_func
1>flac.lib(bitreader.obj) : error LNK2019: unresolved external symbol _fprintf referenced in function _FLAC__bitreader_dump
1>flac.lib(bitwriter.obj) : error LNK2001: unresolved external symbol _fprintf
1>flac.lib(win_utf8_io.obj) : error LNK2019: unresolved external symbol _vsnprintf_s referenced in function _local_vsnprintf
1>msvcrtd.lib(vsnprintf_s.obj) : error LNK2001: unresolved external symbol _vsnprintf_s
1>msvcrtd.lib(vsnprintf_s.obj) : error LNK2001: unresolved external symbol __vsnprintf_s
Has anyone successfully compiled SFML 2.3.1 for Visual Studio 2015?
Though, the errors do relate to flac.lib and msvcrtd.lib, which aren't part of SFML.
Anyone have a solution for my problem?
Update...
Compiling libFLAC from
http://sourceforge.net/projects/libzplay/ gives me these errors instead:
1>msvcrtd.lib(initializers.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
1>flac.lib(stream_decoder.obj) : error LNK2019: unresolved external symbol _fseeko referenced in function _file_seek_callback_
1>flac.lib(stream_encoder.obj) : error LNK2001: unresolved external symbol _fseeko
1>flac.lib(stream_decoder.obj) : error LNK2019: unresolved external symbol _ftello referenced in function _file_tell_callback_
1>flac.lib(stream_encoder.obj) : error LNK2001: unresolved external symbol _ftello
Update 2...
The _fseeko and _ftello stuff was defined for older versions of Visual Studio (in FLAC source code), but not for 2015. So I moved them around to make them defined.
Not sure if this is progress or not. Now I'm getting this:
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_new referenced in function "public: static bool __cdecl sf::priv::SoundFileReaderFlac::check(class sf::InputStream &)" (?check@SoundFileReaderFlac@priv@sf@@SA_NAAVInputStream@3@@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_delete referenced in function "public: static bool __cdecl sf::priv::SoundFileReaderFlac::check(class sf::InputStream &)" (?check@SoundFileReaderFlac@priv@sf@@SA_NAAVInputStream@3@@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_get_state referenced in function "public: virtual unsigned __int64 __thiscall sf::priv::SoundFileReaderFlac::read(short *,unsigned __int64)" (?read@SoundFileReaderFlac@priv@sf@@UAE_KPAF_K@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_init_stream referenced in function "public: static bool __cdecl sf::priv::SoundFileReaderFlac::check(class sf::InputStream &)" (?check@SoundFileReaderFlac@priv@sf@@SA_NAAVInputStream@3@@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_finish referenced in function "public: static bool __cdecl sf::priv::SoundFileReaderFlac::check(class sf::InputStream &)" (?check@SoundFileReaderFlac@priv@sf@@SA_NAAVInputStream@3@@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_process_single referenced in function "public: virtual unsigned __int64 __thiscall sf::priv::SoundFileReaderFlac::read(short *,unsigned __int64)" (?read@SoundFileReaderFlac@priv@sf@@UAE_KPAF_K@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_process_until_end_of_metadata referenced in function "public: static bool __cdecl sf::priv::SoundFileReaderFlac::check(class sf::InputStream &)" (?check@SoundFileReaderFlac@priv@sf@@SA_NAAVInputStream@3@@Z)
1>sfml-audio-s-d.lib(SoundFileReaderFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_decoder_seek_absolute referenced in function "public: virtual void __thiscall sf::priv::SoundFileReaderFlac::seek(unsigned __int64)" (?seek@SoundFileReaderFlac@priv@sf@@UAEX_K@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_new referenced in function "public: virtual bool __thiscall sf::priv::SoundFileWriterFlac::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?open@SoundFileWriterFlac@priv@sf@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_delete referenced in function "private: void __thiscall sf::priv::SoundFileWriterFlac::close(void)" (?close@SoundFileWriterFlac@priv@sf@@AAEXXZ)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_set_channels referenced in function "public: virtual bool __thiscall sf::priv::SoundFileWriterFlac::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?open@SoundFileWriterFlac@priv@sf@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_set_bits_per_sample referenced in function "public: virtual bool __thiscall sf::priv::SoundFileWriterFlac::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?open@SoundFileWriterFlac@priv@sf@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_set_sample_rate referenced in function "public: virtual bool __thiscall sf::priv::SoundFileWriterFlac::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?open@SoundFileWriterFlac@priv@sf@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_init_file referenced in function "public: virtual bool __thiscall sf::priv::SoundFileWriterFlac::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int,unsigned int)" (?open@SoundFileWriterFlac@priv@sf@@UAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@II@Z)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_finish referenced in function "private: void __thiscall sf::priv::SoundFileWriterFlac::close(void)" (?close@SoundFileWriterFlac@priv@sf@@AAEXXZ)
1>sfml-audio-s-d.lib(SoundFileWriterFlac.obj) : error LNK2019: unresolved external symbol _FLAC__stream_encoder_process_interleaved referenced in function "public: virtual void __thiscall sf::priv::SoundFileWriterFlac::write(short const *,unsigned __int64)" (?write@SoundFileWriterFlac@priv@sf@@UAEXPBF_K@Z)
I should mention sfml-audio is the only part of SFML that I am currently using.