Creating Header-Only Files?

You should be able to just add a new header file in Visual Studio.
And just use “Generate Visual Studio project files”.

And recompile your project that worked for me.
Also make sure to add the line under to the top of your header file.


#pragma once

Hope it helps.