在 2021-03-02 03:43, Paul Ausbeck 写道:
gcc x86_64-w64-mingw32 can find and open absolute filenames or directory names beginning /driveletter/ when they are mentioned directly on the invoking command line. However, such filenames or include directories mentioned in @response files aren't found. To be found, files or directories mentioned in @response files must begin driveletter:.
I suspect you are using MSYS2 instead of Cygwin because of absence of the `/cygdrive` prefix.For native programs, MSYS2 bash translate command-line arguments that look like Unix paths to Windows paths. This can be observed by running this simple program:
```c
#include <stdio.h>
int main(int argc, char** argv)
{
if(argc < 2) {
puts("no arg");
return 1;
}
printf("arg = %s\n", argv[1]);
return 0;
}
```
If you run it in MSYS2 bash and CMD with a path argument such as `/c/windows`, you will get
different outputs.
-- Best regards, Liu Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
