GLEW Problems.

Hello! Im using SFML with GLEW. But when i try to compile my app, build log show fast-moving text for a couple of seconds, and then throws this error:
C:\SFML-2.1\lib/libsfml-graphics-s.a(glew.c.o):glew.c:(.bss+0x1834): first defined here
Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized

Theres my code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <GL/glew.h>
#include <iostream>

using namespace std;

sf::Window window;
sf::Event event;

int main()
{
    sf::ContextSettings settings;
    settings.depthBits = 24;
    settings.stencilBits = 8;
    settings.antialiasingLevel = 2; // Optional

    window.create(sf::VideoMode(600,400),"SFML", sf::Style::Close, settings);

    glewExperimental = GL_TRUE;
    glewInit();

    GLuint vertexBuffer;
    glGenBuffers(1, &vertexBuffer);

    cout<<vertexBuffer;

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

        window.display();
    }

    return 0;
}
how are you linking?
Im linking a static lib, and #define GLEW_STATIC and SFML_STATIC
Topic archived. No new replies allowed.