ocaml / flexdll

a dlopen-like API for Windows
Other
98 stars 30 forks source link

line in response file wrongly interpreted as option by MSVC linker #8

Open prahlada opened 9 years ago

prahlada commented 9 years ago

In win64 environment, a file to be linked may be of the form \server\path\to\obj

If the command line is too long, this is dumped into a response file, but the function build_diversion in reloc.ml, specifically converts file-paths to use "/" instead of "\". As a result the above file is interpreted as an option to the "link" command then fails to link files.

There does not seem to be an easy workaround to this problem, as the option to use response file is not user-controllable

dra27 commented 7 years ago

Being slightly lazy before contriving an example myself, do you have a publically available example which shows this?