I need to compile the libffi library to use it in a Visual Studio 2013 project.
I am using libffi 3.0.13, downloaded from their original page
I have been struggling to make it work, following the instructions given in README, or trying to come up with something myself, but ended up failing pretty fast.
I tried:
using the Mingw environment to configure the libffi. But that is done for 'gcc' and 'make'. If I compile with gcc, it probably won't link with VS project correctly (right?). Besides, I don't have
make
(I would install it gladly, if gcc compilation would suffice)using the
../configure CC="../msvcc.sh -m64"
command as suggested in README, but my mingw does not know whatcl
is.Tried providing the full path to
cl.exe
, but the compiler failed the configure tests. The log shows:
configure:3673: ../msvcc.sh conftest.c >&5 C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\cl.exe -MD -nologo -W3 conftest.c conftest.c LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'
- Tried using the Visual Studio shell, but then the
configure
program is unknown