You want to set $(#gcc) to the Code::Blocks directory in this case, as this is the root dir for MinGW at the same time and contains the directories lib and include.
Note that you can set $(#gcc.include) and $(#gcc.lib), but these default to $(#gcc)/include and $(#gcc)/lib, which is usually good. Most people, although they can, do not need to set these.