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 - defic

Pages: [1]
1
Audio / -lsndfile-1?
« on: November 02, 2011, 09:28:09 pm »
Cannot find -lsndfile-1

ty for a reply.

2
Audio / -lsndfile-1?
« on: November 02, 2011, 09:01:26 pm »
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 :P.

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:


Code: [Select]
#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)

Pages: [1]
anything