Hey, I'm trying to compile statics and I'm getting a couple linker errors. I can't seem to resolve them by pulling in the rebuilt deps that people are suggesting, so I'm wondering if I'm missing a dep or something.
I'm using VS2015 on Win7 Ultimate x64 (all of my build stages are x86).
The contents of my lib folder are as follows:
This is the file I use for linking, which gets included once at the entry point:
#pragma once
#define SFML_STATIC
#include <SFML/Main.hpp>
#pragma message("Generating links to OS dependencies...")
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "winmm.lib")
#pragma message("Generating links to bundled dependencies...")
#pragma comment(lib, "SFML/lib/freetype.lib")
#pragma comment(lib, "SFML/lib/jpeg.lib")
#pragma comment(lib, "SFML/lib/openal32.lib")
#pragma comment(lib, "SFML/lib/flac.lib")
#pragma comment(lib, "SFML/lib/ogg.lib")
#pragma comment(lib, "SFML/lib/vorbis.lib")
#pragma comment(lib, "SFML/lib/vorbisenc.lib")
#pragma comment(lib, "SFML/lib/vorbisfile.lib")
#ifdef NDEBUG
#pragma message("Generating links to SFML release libs...")
#pragma comment(lib, "SFML/lib/sfml-main.lib")
#pragma comment(lib, "SFML/lib/sfml-system-s.lib")
#pragma comment(lib, "SFML/lib/sfml-window-s.lib")
#pragma comment(lib, "SFML/lib/sfml-graphics-s.lib")
#pragma comment(lib, "SFML/lib/sfml-network-s.lib")
#pragma comment(lib, "SFML/lib/sfml-audio-s.lib")
#else
#pragma message("Generating links to SFML debug libs...")
#pragma comment(lib, "SFML/lib/sfml-main-d.lib")
#pragma comment(lib, "SFML/lib/sfml-system-s-d.lib")
#pragma comment(lib, "SFML/lib/sfml-window-s-d.lib")
#pragma comment(lib, "SFML/lib/sfml-graphics-s-d.lib")
#pragma comment(lib, "SFML/lib/sfml-network-s-d.lib")
#pragma comment(lib, "SFML/lib/sfml-audio-s-d.lib")
#endif
And this is my build output:
1>------ Build started: Project: SFML Static, Configuration: Debug Win32 ------
1>jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _output_message
1>jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol _sprintf referenced in function _format_message
1>jpeg.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol _sscanf referenced in function _jinit_memory_mgr
1>C:\Users\Khatharr\Documents\Visual Studio 2015\Projects\SFML Static\Debug\SFML Static.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I've tried getting the extlibs from eXpl0it3r's repo, but they appear to match the binaries that are included with the SFML source. (I tried them anyway and got the same errors.) I tried following the link posted by Nexus here, but it's a dead link.
In case it's relevant, my CMake config is as follows:
Any help or advice would be greatly appreciated.