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

Author Topic: -lsndfile-1?  (Read 4339 times)

0 Members and 1 Guest are viewing this topic.

defic

  • Newbie
  • *
  • Posts: 2
    • View Profile
-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)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
-lsndfile-1?
« Reply #1 on: November 02, 2011, 09:15:45 pm »
Quote
however, I get a lsndfile compile error..

The exact error message would certainly help us to help you...

Don't forget the rules ;)
Laurent Gomila - SFML developer

defic

  • Newbie
  • *
  • Posts: 2
    • View Profile
-lsndfile-1?
« Reply #2 on: November 02, 2011, 09:28:09 pm »
Cannot find -lsndfile-1

ty for a reply.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
-lsndfile-1?
« Reply #3 on: November 02, 2011, 09:55:57 pm »
Quote
Cannot find -lsndfile-1

So you have "-lsndfile-1" in your linker options? Why? :D
Laurent Gomila - SFML developer