Compile Arduino code without connecting to board?

Hi!

I've been working on a project that uses an Arduino. My cp crashed while I was away from work, so I'm waiting to get it back. Regardless, I don't have access to the Arduino I've been using. I am trying to clean up some code so I can send it in; the only problem is that it seems I'm unable to compile my code without connecting to a board.

Can I get around this? I'm not sure if it's because the laptop I'm using has never been connected to a board that it's having this issue, bc previously I've been able to compile without directly being connected to a board.

But I really do need to compile and at least make the changes I can before I pass this code off to someone else.

Help?

You don't need a board to be connected, neither does it ever have to be connected before.

What are the symptoms of your problem? Error messages? Does the IDE crash? Something else?

It just says, "Error compiling, check if you have selected a board and if it is currently available."

Are you using the Arduino IDE or the Arduino Web Editor (AKA "Create")?