I don't know if I'm doing something wrong...
I want to build both dynamically (works like a charm) but with VS on the command-line I'm getting a lot of
error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in fooey.obj
in the official stuff found here
http://www.sfml-dev.org/download/sfml/2.1/I had to download
eXpl0it3r's nightly build (
http://sfml.my-gate.net/nightly/), which has a separate little directory with the static stuff.
Once I did that, the following works swimmingly:
cl /EHsc /Ox /MT fooey.cpp sfml-graphics-s.lib sfml-window-s.lib sfml-system-s.lib sfml-main.lib user32.lib
I'm pretty sure there's something mis-configured about the official build.
As a side note,
eXpl0it3r also had mis-configured
sfml-foo-s.lib files in the regular
lib directory...
I just think that if a 'drop-in' kind of download is provided, it ought to have the
sfml*-s*.lib files properly configured...
(Unless I missed something really obvious. I don't know how many people try to do things from the command line like me...)
Thanks for reading.