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

Author Topic: Can't set my project up  (Read 2181 times)

0 Members and 1 Guest are viewing this topic.

alienonolympus

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Can't set my project up
« on: June 07, 2015, 10:52:59 am »
I am using Visual Studio Community 2013, and I can't build my thing.

This is the only error I got:

Quote
Error1 error LNK1104: cannot open file '(­ditionalDependencies).obj'

So it still won't let me build it!

Here's my code if it helps:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <iostream>
#include <string>

int main()
{
        sf::RenderWindow splash_screen(sf::VideoMode(800, 600), "Welcome", sf::Style::Close);

        // This allows the splash_screen to run as fast as the monitor refresh rate.
        splash_screen.setVerticalSyncEnabled(true);

        while (splash_screen.isOpen())
        {
                // Creates an Event variable.
                sf::Event close;
                // The pollEvent checks if Event "close" is the event with most priority.
                while (splash_screen.pollEvent(close))
                {
                        // When the close button is pressed, the window will close.
                        if (close.type == sf::Event::Closed)
                                splash_screen.close();
                }

                // Makes window blue
                splash_screen.clear(sf::Color::Blue);
                splash_screen.display();
        }
        return 0;
}

I copied an pasted it from my other project, and nothing was wrong with the other one. (I copied it because I still couldn't figure out how to change a Console application to a Windows application)

dabbertorres

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • website/blog
Re: Can't set my project up
« Reply #1 on: June 07, 2015, 07:12:20 pm »
Quote
Error1 error LNK1104: cannot open file '(­ditionalDependencies).obj'

Take another look at the file name in the error message. Looks like a copy and paste error to me.

(click to show/hide)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Can't set my project up
« Reply #2 on: June 07, 2015, 10:45:35 pm »
Don't copy object files...
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

alienonolympus

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Re: Can't set my project up
« Reply #3 on: June 26, 2015, 04:24:46 am »
Sorry for the late reply!

I solved the problem by your advice, and thanks a lot!

 

anything