Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
GNU-EFI is not intended to be used with Mingw: It is a build system for using an ELF toolchain to create EFI binaries.
You are referencing library functions from the included EFILIB - if you want to use these functions outside of GNU-EFI, you must build it separately from source and then link with it.