I apologize in advance if this question is malformed, I am a beginner with these tools.My overall goal is to compile c++ files using g++ in cygwin. In my makefile, I am referencing a directory with .lib files for the compilationMEX_LIBS:=$(LIBS) -L/c/Program\ Files/MATLAB/r2017a/extern/lib/win64/mingw64 -lmex -lmxHowever I am receiving the error:/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -lmex/usr/lib/gcc/i686-pc-cygwin/5.4.0/../../../../i686-pc-cygwin/bin/ld: cannot find -lmxIn my naive searching I believe this is due to me not having a proper integration between mingw and gcc-g++. I believe I need to add a -mno-cygwin flag in my compilation. I'm following this post as a reference:https://stackoverflow.com/questions/3776098/cygwin-how-to-actually-use-gcc-mingwI am unclear on what I need to do to accomplish this, I've installed a mingw64-x86_64-gcc-g++ package, but I am unsure how to actually use this is in my compilation.It seems like it would be easy if I installed gcc-3, but I also don't know how to do this. It doesn't seem to be an available package that I can install.I'm really struggling through this right now as a beginner. I'd really appreciate if anyone would give me some steps to follow- or to let me know if I'm even on the right track. Essentailly I just need get those -lmex, -lmx flags working in the g++ compilation.Thanks in advance.
Cygwin, g++ and MinGW [compilation help]
gcc;cygwin;g++;mingw