How to use GMT API

Thanks. You are right. I did not build gmt with Mingw. The GMT in my computer was installed from .exe. So gmt-config --libs will get -L/c/programs/gmt6/lib -lgmt (windows dir).