Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: VISUAL C++ 2012  (Read 3601 times)

0 Members and 2 Guests are viewing this topic.

ghost_tech

  • Newbie
  • *
  • Posts: 5
    • View Profile
VISUAL C++ 2012
« 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;
}


GraphicsWhale

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: VISUAL C++ 2012
« Reply #1 on: October 22, 2015, 09:55:28 pm »
What are your linker options?

ghost_tech

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: VISUAL C++ 2012
« Reply #2 on: October 22, 2015, 10:09:39 pm »
Linker Options as follows:


Input

Release: sfml-graphics-s.lib;sfml-window-s.lib;sfml-system-s.lib
Debug: sfml-graphics-s-d.lib;sfml-window-s-d.lib;sfml-system-s-d.lib

Preprocessor Option: SFML_STATIC;%(PreprocessorDefinitions)

I have ensured that I have download the VC12 Pack from the SFML site as using VC++ 12, would the fact that I have express make any difference?

Can confirm that my windows version is 32 bit (if that helps).



ghost_tech

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: VISUAL C++ 2012
« Reply #3 on: October 22, 2015, 10:25:01 pm »
I can confirm that the file exists. the file extension is correct, however it is hidden?? But surely this should not matter. I tried removing the extension in the declaration and it made no difference.

The intelligent typing tool correctly identifies the files.
« Last Edit: October 22, 2015, 10:28:10 pm by ghost_tech »

GraphicsWhale

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: VISUAL C++ 2012
« Reply #4 on: October 22, 2015, 10:35:32 pm »
The headers should be in the SFML subdirectory such as: #include <SFML/Graphics.hpp>. It may work without doing this, but it still should be configured like this because generic header names such as Graphics.hpp may be ambiguous.

Also, you are not linking some things required for statically linking SFML.

I believe the options you need to add are:

- opengl32.lib
- freetype.lib
- jpeg.lib
- winmm.lib
- gdi32.lib

But I'm not entirely sure. I usually don't link it statically.

ghost_tech

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: VISUAL C++ 2012
« Reply #5 on: October 22, 2015, 10:44:23 pm »
OK I now have 34 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 __ftol3   C:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Project1\sfml-system-s.lib(Time.cpp.obj)   Project1
Error   33   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   34   error LNK1120: 2 unresolved externals   C:\Users\marks\documents\visual studio 2012\Projects\SFML Test\Release\Project1.exe   Project1

Linked files for Active:

sfml-graphics-s.lib
sfml-window-s.lib
sfml-system-s.lib
opengl32.lib
freetype.lib
jpeg.lib
winmm.lib
gdi32.lib

Inherited values

kernel32.lib
user32.lib
gdi32.lib
winspool.lib
comdlg32.lib
advapi32.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
odbc32.lib
odbccp32.lib




eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: VISUAL C++ 2012
« Reply #6 on: October 22, 2015, 10:49:40 pm »
The errors are pretty descriptive, plus the MSDN will always provide more information on any of their compiler and linker errors, did you take a look already?

The issue is that you seem to have built your main.cpp with an older compiler version that the SFML libraries were built with.
First try a complete and clean rebuild, then make sure your VS is uptodate and lastly check your project settings, whether you have picked an old version (17).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

ghost_tech

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: VISUAL C++ 2012
« Reply #7 on: October 22, 2015, 10:59:38 pm »
Thanks all for your help.

Was looking at the VC++ Version number not the year number.

Also had to add extra module dependencies.

Works fine now.

Thanks again.