Following this short tutorial, I get stuck at the stage of linking the DLL built by MinGW. Here are the two simple source code files I use for practice purpose.
foo.c