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

Pages: [1]
1
General / Re: Linking Errors - unresolved external symbol _main....
« on: October 23, 2014, 03:05:52 pm »
My subsystem is set to windows too.. is there something I'm missing here?

2
General / Re: Linking Errors - unresolved external symbol _main....
« on: October 22, 2014, 11:41:31 pm »
It's exactly the same apart from its now main rather that WinMain.

3
General / Re: Linking Errors - unresolved external symbol _main....
« on: October 22, 2014, 08:53:32 pm »
It still says the same thing with main.

4
General / Re: Linking Errors - unresolved external symbol _main....
« on: October 22, 2014, 07:45:59 pm »
That's the thing, I have linked it to sfml-main..

5
General / Re: Linking Errors - unresolved external symbol _main....
« on: October 22, 2014, 07:12:51 pm »
Oops, I thought I said. Im compiling the tutorial code :
#include <SFML/Graphics.hpp>

int WinMain()
{
    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;
}
 

6
General / Linking Errors - unresolved external symbol _main....
« on: October 22, 2014, 06:43:36 pm »


Every time I compile I get this error.. Can't find a solution to the problem..

error LNK2019: unresolved external symbol _main referenced in function _WinMain@16   

Thanks.

Pages: [1]