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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - levi-coder

Pages: [1]
1
Graphics / Exception produced at 0x0707...((sfml-graphics-d-2.dll)
« on: August 01, 2021, 02:37:11 am »
I'm having this issue and I don't know why.... It used to work but I added some code and now i get this error in a part of my code that run correctly before

2
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!

3
I think i linked them correctly as you can see here

4
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;
}
 

Pages: [1]
anything