Hello all ^_^, I'm new to the site and I didn't know exactly where to go to post this..so sorry if its in the wrong Forum spot.
anyways i could use some help if no one minds helping me out
.
i seem to have a problem with with Codeblocks, i keep getting this compile error and i really don't know what it is and I've searched all over google to find it.
i tried to compile:
#include <SFML/Graphics.hpp>
using namespace std;
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML window");
// Load a sprite to display
sf::Image Image;
if (!Image.LoadFromFile("cb.bmp"))
return EXIT_FAILURE;
sf::Sprite Sprite(Image);
// Start the game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
sf::Shape box=sf::Shape::Rectangle(0,0,50,50, sf::Color(127,0,0,255));
box.SetPosition(100, 100);
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear screen
App.Clear(sf::Color(100, 149, 237));
// Draw the sprite
App.Draw(box);
// Update the window
App.Display();
}
return EXIT_SUCCESS;
}
however, I get a lsndfile compile error..
Can anyone explain to me what this is
what it does and how to fix it, thxs!
(i think it has something to do with the audio O.O)