Here is how I compile this code:

Code:
gcc -g -Wall -Wextra -pedantic -Werror -std=c11 try40.c `simple2d --libs` -lm -o try40.out