Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3203 closed defect (invalid)

Windows MSVC configure failed.

Reported by: persanker Owned by:
Priority: critical Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

open visual studio 2010 command prompt
run msys.bat to open msys command prompt
run ./configure --toolchain=msvc

Result:

cl is unable to create an executable file.
If cl is a cross-compiler, use the --enable-cross-compile option.
Only do this if you know what cross compiling means.
C compiler test failed.

Lines in config.log:

link -o ./ffconf.ldwHcjto.exe ./ffconf.TGmoNFot.o
link: invalid option -- o
Try `link --help' for more information.
C compiler test failed.

Change History (2)

comment:1 Changed 6 years ago by dbuitenh

  • Resolution set to invalid
  • Status changed from new to closed

You did not read the documentation (http://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows)

Specifically:

It is possible that coreutils' link.exe conflicts with MSVC’s linker. You can find out by running 'which link' to see which link.exe you are using. If it is located at /bin/link.exe, then you have the wrong one in your PATH. Either move or remove that copy, or make sure MSVC’s link.exe takes precedence in your PATH over coreutils'.

comment:2 Changed 6 years ago by persanker

In my opinion, -o is not a valid parameter of MSVC's linker. So the error occurs.

Version 0, edited 6 years ago by persanker (next)
Note: See TracTickets for help on using tickets.