@indu97 please do not hijack old threads.
Note that the compiler is not part of Geany, so you have to make it work first.
Does the compiler work on the command line?
If not fix that first.
Then use the same command in the build commands in Geany (Menu->Build->Set Build Commands)