Just
#include <stdlib.h>
The first Google result said to install and use GCC G++ command.
First Guess based on that info
1. Install GCC G++
2. Try changing file extension to .cpp
Second guess you are doing an C project with cpp extension
1. Change to use .c extension (lower case c) in C projects.
Tim S.