I followed a video on LinkedIn to setup SFML, but when I tried compiling the code get several errors, some of which are:
- C2065 'Fullscreen': undeclared identifier
- C3861 'RenderWindow':identifier not found
- C2871 'sf': a namespace with this name does not exist
- C2653 'Style':is not a class or namespace name
- C2065 'VideoMode':undeclared identifier
- C3861 'vm' :identifier not found
- C2065 'vm' :undeclared identifier
- C26444 Don't try to declare a local variable with no name(es.84)
- C2146 syntax error:missing ';' before identifier 'vm'
#include "pch.h"
as the first line. In Visual Studio when using precompiled headers the compiler ignores every line above#include "pch.h"
– drescherjm