how do i make the main file a header file

it is warning me that the main file is not a header file and that i cannot use a #pragma once because of this

You are viewing a single comment. View All

@jnrchewie no, .h files are for declarations, and .cpp file are for implementations like this:

It gets a little complicated, so you can instead just use a .h file like this: