1
General / Re: Reinstalling SFML2.0 won't work using VS2011
« on: July 24, 2013, 09:21:41 pm »Well it's important to not only look at the images, but also to read what the images mean.Quote from: TutorialIf you want to get rid of these DLLs and have SFML directly integrated to your executable, you must link to the static version. Static SFML libraries have the "-s" suffix: "sfml-xxx-s-d.lib" for Debug, and "sfml-xxx-s.lib" for Release.
In this case, you'll also need to define the SFML_STATIC macro in the preprocessor options of your project.
If you want to link statically, you'll need to specify the libs with the -s suffix and define SFML_STATIC. If you want to link shared, you'll neeed to specify the libs with no -s suffix, but you're not allowed to define SFML_STATIC.
Alright so, this is now an updated version of what I have done:
1. When creating a project, I chose "Win32 project"
2. In project properties, I chose "All configurations"->"C/C++"->"General"->"Additional include directories" and added SFML-2.0\include
3. In "Linker"->"General" of "All configurations", I added SFML-2.0\lib
4. In "Release"->"Linker"->"Input", I added "sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;", in that order and EXACTLY as what was written on the official tutorial
5. In "Debug"-> "C/C++" -> "Preprocessor", I added SFML_STATIC; as shown on tutorial
I still got the exact same error, is there something else Im missing?
EDIT: So now I've also added the -s-d files in, this is what I've done:
1. When creating a project, I chose "Win32 project"
2. In project properties, I chose "All configurations"->"C/C++"->"General"->"Additional include directories" and added SFML-2.0\include
3. In "Linker"->"General" of "All configurations", I added SFML-2.0\lib
4. In "Release"->"Linker"->"Input", I added "sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib;", in that order and EXACTLY as what was written on the official tutorial
4. In "Debug"->"Linker"->"Input", I added "sfml-graphics-s-d.lib;sfml-window-s-d.lib;sfml-system-s-d.lib;", in that order and EXACTLY as what was written on the official tutorial
5. In "Debug"-> "C/C++" -> "Preprocessor", I added SFML_STATIC; as shown on tutorial
This is the new error I got:
1>------ Build started: Project: adfasdfasdf, Configuration: Debug Win32 ------
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
1>C:\Users\Martin Liu\documents\visual studio 2012\Projects\adfasdfasdf\Debug\adfasdfasdf.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
EDIT 2: nevermind, thanks for your help. I resolved that error and now everything works just fine