Menu

#5 Add support of msvcr 19xx

1.0
open
oreste
None
2019-10-02
2019-10-02
No

Compilation with msvcr and with gcc both give the same error:

C:\MinGW\bin\gcc.exe -shared -s build\temp.win32-3.7\Release\src\pyclp\pyclp.o build\temp.win32-3.7\Release\src\pyclp\pyclp.cp37-win32.def "-LC:\Program Files (x86)\ECLiPSe 6.1\lib\i386_nt" -LD:\dd\pycharm\extractor\venv\libs -LC:\Python\Python37-32\libs -LC:\Python\Python37-32 -LD:\dd\pycharm\extractor\venv\PCbuild\win32 -leclipse -lpython37 -lmsvcr140 -o build\lib.win32-3.7\pyclp\pyclp.cp37-win32.pyd
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: cannot find -lmsvcr140
collect2.exe: error: ld returned 1 exit status
error: command 'C:\MinGW\bin\gcc.exe' failed with exit status 1

I inserted extra elif in cygwinccompiler.py:

def get_msvcr():

elif msc_ver == '1916' or msc_ver == '1900':
# VS2010 / MSVC 10.0
return ['msvcr100']

msvcr120 and msvcr140 give an exception, but msvcr100 works fine.

PS Still it is strange that gcc on windows depends on msvcr...

Discussion


Log in to post a comment.