Edit: I changed the subsystem from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) after I found out that sb6 header uses windows subsystem.
When I compile this code.
// Include the "sb6.h" header file
#include "sb6.h"
// Derive my_application from sb6::application
class my_application : public sb6::application
{
public:
// Our rendering function
void render(double currentTime)
{
// Simply clear the window with red
static const GLfloat red[] = { 1.0f, 0.0f, 0.0f, 1.0f };
glClearBufferfv(GL_COLOR, 0, red);
}
};
// Our one and only instance of DECLARE_MAIN
DECLARE_MAIN(my_application);
I get these errors
LNK2019 unresolved external symbol __imp____iob_func referenced in function __glfwPlatformOpenWindow
LNK4217 locally defined symbol _fprintf imported in function __glfwPlatformOpenWindow
I did link all the libraries and include folders to VC++ Directories and also I am in the correct subsystem with all the preprocessors included.