5
« on: October 22, 2015, 08:47:44 pm »
System: Windows 10
I am using Visual Studio express and I have follows the tutorial for setting up SFML as static libraries not dynamic.
However when attempting to build, I get the following Linker errors:
Error 1 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Shape.cpp.obj) Project1
Error 2 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderWindow.cpp.obj) Project1
Error 3 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Color.cpp.obj) Project1
Error 4 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderStates.cpp.obj) Project1
Error 5 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(CircleShape.cpp.obj) Project1
Error 6 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 7 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Transform.cpp.obj) Project1
Error 8 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Transformable.cpp.obj) Project1
Error 9 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(VertexArray.cpp.obj) Project1
Error 10 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 11 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Image.cpp.obj) Project1
Error 12 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(View.cpp.obj) Project1
Error 13 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Shader.cpp.obj) Project1
Error 14 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(GLExtensions.cpp.obj) Project1
Error 15 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(GLLoader.cpp.obj) Project1
Error 16 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 17 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(Window.cpp.obj) Project1
Error 18 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(VideoMode.cpp.obj) Project1
Error 19 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(GlContext.cpp.obj) Project1
Error 20 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WindowImpl.cpp.obj) Project1
Error 21 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(VideoModeImpl.cpp.obj) Project1
Error 22 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 23 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(JoystickManager.cpp.obj) Project1
Error 24 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(SensorManager.cpp.obj) Project1
Error 25 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WindowImplWin32.cpp.obj) Project1
Error 26 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglExtensions.cpp.obj) Project1
Error 27 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(Joystick.cpp.obj) Project1
Error 28 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(JoystickImpl.cpp.obj) Project1
Error 29 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(String.cpp.obj) Project1
Error 30 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(Err.cpp.obj) Project1
Error 31 error LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1700' in main.obj c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(ThreadLocal.cpp.obj) Project1
Error 32 error LNK2001: unresolved external symbol __imp__glReadPixels@28 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderWindow.cpp.obj) Project1
Error 33 error LNK2001: unresolved external symbol __imp__glBlendFunc@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 34 error LNK2001: unresolved external symbol __imp__glClear@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 35 error LNK2001: unresolved external symbol __imp__glClearColor@16 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 36 error LNK2001: unresolved external symbol __imp__glDisable@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 37 error LNK2001: unresolved external symbol __imp__glEnable@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 38 error LNK2001: unresolved external symbol __imp__glEnable@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(GlContext.cpp.obj) Project1
Error 39 error LNK2001: unresolved external symbol __imp__glLoadMatrixf@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 40 error LNK2001: unresolved external symbol __imp__glLoadMatrixf@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 41 error LNK2001: unresolved external symbol __imp__glMatrixMode@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 42 error LNK2001: unresolved external symbol __imp__glMatrixMode@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 43 error LNK2001: unresolved external symbol __imp__glPopAttrib@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 44 error LNK2001: unresolved external symbol __imp__glPopMatrix@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 45 error LNK2001: unresolved external symbol __imp__glPushAttrib@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 46 error LNK2001: unresolved external symbol __imp__glPushMatrix@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 47 error LNK2001: unresolved external symbol __imp__glViewport@16 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 48 error LNK2001: unresolved external symbol __imp__glColorPointer@16 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 49 error LNK2001: unresolved external symbol __imp__glDrawArrays@12 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 50 error LNK2001: unresolved external symbol __imp__glEnableClientState@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 51 error LNK2001: unresolved external symbol __imp__glPopClientAttrib@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 52 error LNK2001: unresolved external symbol __imp__glPushClientAttrib@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 53 error LNK2001: unresolved external symbol __imp__glTexCoordPointer@16 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 54 error LNK2001: unresolved external symbol __imp__glVertexPointer@16 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(RenderTarget.cpp.obj) Project1
Error 55 error LNK2001: unresolved external symbol __imp__glFlush@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 56 error LNK2001: unresolved external symbol __imp__glFlush@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Shader.cpp.obj) Project1
Error 57 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(GlContext.cpp.obj) Project1
Error 58 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 59 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Shader.cpp.obj) Project1
Error 60 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(GLLoader.cpp.obj) Project1
Error 61 error LNK2001: unresolved external symbol __imp__glGetIntegerv@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(TextureSaver.cpp.obj) Project1
Error 62 error LNK2001: unresolved external symbol __imp__glGetTexImage@20 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 63 error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 64 error LNK2001: unresolved external symbol __imp__glTexImage2D@36 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 65 error LNK2001: unresolved external symbol __imp__glTexParameteri@12 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 66 error LNK2001: unresolved external symbol __imp__glBindTexture@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 67 error LNK2001: unresolved external symbol __imp__glBindTexture@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(TextureSaver.cpp.obj) Project1
Error 68 error LNK2001: unresolved external symbol __imp__glCopyTexSubImage2D@32 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 69 error LNK2001: unresolved external symbol __imp__glDeleteTextures@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 70 error LNK2001: unresolved external symbol __imp__glGenTextures@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 71 error LNK2001: unresolved external symbol __imp__glTexSubImage2D@36 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(Texture.cpp.obj) Project1
Error 72 error LNK2001: unresolved external symbol __imp__glGetError@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(GLLoader.cpp.obj) Project1
Error 73 error LNK2001: unresolved external symbol __imp__glGetError@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(GlContext.cpp.obj) Project1
Error 74 error LNK2001: unresolved external symbol __imp__glGetString@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(GLLoader.cpp.obj) Project1
Error 75 error LNK2001: unresolved external symbol __imp__glGetString@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(GlContext.cpp.obj) Project1
Error 76 error LNK2001: unresolved external symbol _jpeg_std_error c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 77 error LNK2001: unresolved external symbol _jpeg_CreateCompress c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 78 error LNK2001: unresolved external symbol _jpeg_destroy_compress c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 79 error LNK2001: unresolved external symbol _jpeg_stdio_dest c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 80 error LNK2001: unresolved external symbol _jpeg_set_defaults c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 81 error LNK2001: unresolved external symbol _jpeg_set_quality c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 82 error LNK2001: unresolved external symbol _jpeg_start_compress c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 83 error LNK2001: unresolved external symbol _jpeg_write_scanlines c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 84 error LNK2001: unresolved external symbol _jpeg_finish_compress c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-graphics-s.lib(ImageLoader.cpp.obj) Project1
Error 85 error LNK2001: unresolved external symbol __imp__wglCreateContext@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 86 error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 87 error LNK2001: unresolved external symbol __imp__wglGetCurrentContext@0 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 88 error LNK2001: unresolved external symbol __imp__wglGetProcAddress@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 89 error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 90 error LNK2001: unresolved external symbol __imp__wglShareLists@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(WglContext.cpp.obj) Project1
Error 91 error LNK2001: unresolved external symbol __imp__joyGetPosEx@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(JoystickImpl.cpp.obj) Project1
Error 92 error LNK2001: unresolved external symbol __imp__joyGetDevCapsW@12 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-window-s.lib(JoystickImpl.cpp.obj) Project1
Error 93 error LNK2001: unresolved external symbol __ftol3 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(Time.cpp.obj) Project1
Error 94 error LNK2001: unresolved external symbol __ltod3 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(Time.cpp.obj) Project1
Error 95 error LNK2001: unresolved external symbol __imp__timeGetDevCaps@8 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(SleepImpl.cpp.obj) Project1
Error 96 error LNK2001: unresolved external symbol __imp__timeBeginPeriod@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(SleepImpl.cpp.obj) Project1
Error 97 error LNK2001: unresolved external symbol __imp__timeEndPeriod@4 c:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(SleepImpl.cpp.obj) Project1
Error 98 error LNK1120: 55 unresolved externals c:\users\marks\documents\visual studio 2012\Projects\SFML Test\Release\Project1.exe Project1
Code used is here
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}