I'm trying to build a sample SFML program which uses OpenGL features; the source code is the following:
#include <GL/glew.h>
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
using namespace sf;
GLuint VBO;
void createVertexBuffer()
{
    using namespace sf;
    Vector3f vertices[] {{0.0f, 0.0f, 0.0f}};
    glGenBuffers(1, &VBO);
}
int main()
{
    
    Window window(sf::VideoMode(800, 600), "OpenGL");
    window.setActive(true);
    
    bool running = true;
    while(running)
    {
        Event event;
        
        while(window.pollEvent(event))
        {
            if(event.type == Event::Closed)
            {
                running = false;
            }
        }
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
        // end the current frame (internally swaps the front and back buffers)
        window.display();
    }
    return 0;
}
I'm compiling it using this command line:
g++ -std=c++2b -L"E:/H/CppLibraries/SFML/libs" -I"E:\H\CppLibraries\glew-2.1.0\include" -L"E:\H\CppLibraries\glew-2.1.0\lib\Release\x64" -mwindows .\main.cpp -lglew32s -lsfml-window -lsfml-system -lopengl32
When I try to compile I get the following error message:
undefined reference to `_imp____glewGenBuffers'
