Device Construction in PROS

Should I define my devices in PROS individually in each function, or create a seperate header file to define my motors in?

Separate file, but declare them in a header file and define them in a source file.

When I do that this error pops up

If you are using the new keyword to construct the device you are doing it wrong.