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

Pages: [1]
1
General / Re: Trouble getting set up.
« on: July 25, 2013, 05:45:42 am »
Also i tried the Night Build. No change.

2
General / Re: Trouble getting set up.
« on: July 25, 2013, 05:40:48 am »
I set up a pause to be the first thing that happens when the program executes. It seems to crash at the very first command that i assume is used to display a window by X and Y pixels.
Quote
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");

3
General / Re: Trouble getting set up.
« on: July 24, 2013, 08:39:19 pm »
Quote
#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;
}

4
General / Re: Trouble getting set up.
« on: July 24, 2013, 08:08:46 pm »
Did that. It seems to have removed some errors. Still one left though.


5
General / Re: Trouble getting set up.
« on: July 24, 2013, 07:43:15 pm »
Here is what the debugger is giving me.


6
General / Re: Trouble getting set up.
« on: July 24, 2013, 05:49:37 pm »
Did that. Can't believe i let that slip my mind. Well now it compiles fine. It just doesn't display anything and crashes after a few seconds. A very uninformative error message displays "SFML Project.exe has stopped working"

7
General / Re: Trouble getting set up.
« on: July 24, 2013, 04:15:56 pm »
Well it worked with the 32bit version. Well no more compiler errors at least. I thought i was dependent on your OS instead of the compiler. Well I'm getting a new error... For anyone curious it says "The application was unable to start correctly (Ox000007b) click OK to close the application".
.
This link says this error occurs when trying to run a 32 bit  program in a 64 bit environment.

http://uk.answers.yahoo.com/question/index?qid=20130519080507AAC56Pn


8
General / Re: Trouble getting set up.
« on: July 24, 2013, 11:12:33 am »
Code::Blocks 12.11
GNU GCC compiler.

Using SFML 2.0. The link you see when going to the downloads page under "Windows" titled "GCC 4.7 TDM (SJLJ) - 64 bits"

Not entirely sure what pre-compiled means. I've been hearing alot about this Cmake thing. I can help but feeling this is vital.

9
General / Re: Trouble getting set up.
« on: July 24, 2013, 11:00:51 am »
They were originally set up in that order. Guess that was a typo on my part. Never the less i tried every combo of those i could to rule out all possibilities. I put them in the linker with and without the "-l" prefix. It seems it adds it automatically as the error was simply "cannot find -l-l-sfml-graphics". While linking to the lib's as usual gives me the same error I've had all along. So it seems it has found the libraries. But its like my .a files are blank.

10
General / Trouble getting set up.
« on: July 24, 2013, 06:37:41 am »
I can seem to get SFML to work correctly. I posted something over at Stack Overflow and didn't get any help. So i figured i would try to get help straight from the horse's mouth.

Here's my post over at Stack Overflow.

http://stackoverflow.com/questions/17806871/trouble-setting-up-sfml-in-codeblocks

I'm using the windows-gcc-4.7 64bit version of SFML 2.0. I have the .dll files from SFML's "bin" folder directly in my project folder. I have my linker and compiler settings set up the exact same way they look in the official tutorial for Code::Blocks.

Pages: [1]
anything