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

Author Topic: information no available, no symbols loaded for sfml-graphics-2.dll  (Read 4314 times)

0 Members and 1 Guest are viewing this topic.

levi-coder

  • Newbie
  • *
  • Posts: 4
    • View Profile
I've been trying to load an image and i'm getting this error , my working directory is D:/Shipgame and in that folder i have a folder called imagenes then inside of that folder i have my image stored so i don't know why I'm getting this error since I'm giving the correct path.
this is my code so far.
#include <SFML/Window.hpp>
#include <iostream>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>
int main()
{
    sf::RenderWindow window(sf::VideoMode(800, 600), "SHIPWARS",sf::Style::Titlebar| sf::Style::Close);
    sf::Texture imagen;
    sf::Sprite fondo(imagen);
    imagen.loadFromFile("imagenes/HubbleLegacyField.jpg");
    // run the program as long as the window is open
    while (window.isOpen())
    {
        // check all the window's events that were triggered since the last iteration of the loop
        sf::Event event;
        while (window.pollEvent(event))
        {
            // "close requested" event: we close the window
            if (event.type == sf::Event::Closed)
                window.close();
        }
        window.clear();
        window.draw(fondo);
        window.display();
    }
   
    return 0;
}
 
« Last Edit: May 31, 2021, 09:37:33 am by eXpl0it3r »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
My guess would be that you're linking the release libraries (no -d suffix) in debug mode.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

levi-coder

  • Newbie
  • *
  • Posts: 4
    • View Profile
I think i linked them correctly as you can see here

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10800
    • View Profile
    • development blog
    • Email
That screenshot doesn't show me anything, you have to check under "Input" (i.e. Entrada).
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

levi-coder

  • Newbie
  • *
  • Posts: 4
    • View Profile
Yeah , you were right my debug and release had the same lib and no -d.lib . I put them correctly and now it's working ! Thank you very much!