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

Pages: [1]
1
General / Re: Configuring c::b on Mac OS X. Missing SFML libs.
« on: September 14, 2014, 02:00:17 pm »
Thanks! I've removed d keys, so it worked.

2
General / Configuring c::b on Mac OS X. Missing SFML libs.
« on: September 10, 2014, 08:56:58 pm »
Hi, there
I'm trying to set up SFML 2.1 with Code::Blocks 13.12 on Mac OS X.

I followed this tutorial http://sfml-dev.org/tutorials/2.1/start-cb.php step by step, created project, but when I tried to build and run this code from tutorial:
#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

I got that:


-------------- Build: Debug in cpptest (compiler: GNU GCC Compiler)---------------

g++ -L/Library/SFML-2.1/lib -L/Users/zzzz/Downloads/SFML/SFML-2.1-osx-clang-universal/lib -o bin/Debug/cpptest obj/Debug/main.o   -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
ld: library not found for -lsfml-graphics-d
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

I appreciate any help, that's my first experience of using c::d & sfml

Pages: [1]
anything