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

Author Topic: Please help!  (Read 893 times)

0 Members and 1 Guest are viewing this topic.

Deadshot101

  • Newbie
  • *
  • Posts: 2
    • View Profile
Please help!
« on: December 02, 2014, 09:49:38 am »
I have just started SFML programming and I have received my first error. The code is:
#include <SFML/Graphics.hpp>

int main()
{
        sf::RenderWindow Window(sf::VideoMode(900,700), "SFML");

        while(Window.isOpen())
        {
                sf::Event Event;
                while(Window.pollEvent(Event))
                {
                        if (Event.type == sf::Event::Closed)
                Window.close();
                }
                Window.display();
        }
}

And the error message is:
1>LINK : fatal error LNK1104: cannot open file 'sfml-graphics-d.obj'

I have no idea what this means so if anybody could help me I would really appreciate it  :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Please help!
« Reply #1 on: December 02, 2014, 09:51:29 am »
Please use a better title next time, see the rules.

Did you try to rebuild it? Sometimes there can be some access issue which go away after a retrial.
Otherwise you need to provide the steps that lead to your issue.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Deadshot101

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Please help!
« Reply #2 on: December 02, 2014, 09:56:22 am »
I have tried rebuilding but it still comes up with the same error message. I followed the installation tutorial then I watched a SFML 2.0 tutorial on youtube and copied the code then I got the error message.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Please help!
« Reply #3 on: December 02, 2014, 09:57:34 am »
Go through the official VS tutorial again and follow it step by step, don't jump and don't just look at the images.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/