When the program is compiled. eg, when you call that gcc command

Variables must be known at compile time

Compile time will grab any syntax errors before the program can be ran in Runtime