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

Pages: [1]
1
General / Re: Cannot get the SFML working
« on: February 18, 2015, 09:34:18 pm »
Do you define SFML_STATIC while linking against the dynamic libraries or the other way around?

I used -d libraries since I am only debugging, but I included static SFML_STATIC. I think that caused the issue.
Or should I use only -s libraries with -s .ddls?

What is the difference?

2
General / Cannot get the SFML working
« on: February 18, 2015, 09:10:48 pm »
Hi there I am new to SFML, but not to game development.

I have never had so many problems with setting up simple project as with SFML past days. Sorry to say it.
It took me few hours to set up and find the errors because of the 3 types of different libs...etc.

Never mind. I have this code:

#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System.hpp>


using namespace sf;

int main()
{
        RenderWindow window(VideoMode(640,480),"Game engine");

        CircleShape shape(10.0f);

        while (window.isOpen())
        {
                window.clear();

                window.draw(shape);

                window.display();
        }

        return 0;
}

I get this error:
Error   1   error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)   C:\Users\pcName\Documents\Development Projects\Visual Studio Projects\GameEngine\GameEngine\main.obj   GameEngine

When I try to use sf::Color::Black or any other color for shape lets say, I get unresolved external symbol for color as well.

I guess it will be in setting the SFML up, which i cannot set up better from the tutorial.

Thanks.

Pages: [1]