GCC: Option -MF can not deal with long path name on Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

 

When below code is compiled with -MF option the Compilation failed when the
path of Windows is more than 256 characters. Do let me know if it is a
feature or a bug in GCC.

 

Test code in a.c:

int main()

{

int a = 100;

int b = 200;

return a+b;

}

 

Compilation:

gcc -M -MF
E:\ppc\issue\workspace\test1\test2\test3\test4\test5\test6\test7\test8\test9
\test10\test11\test12\test13\test14\test15\test16\test17\test18\test19\test2
0\test21\test22\test23\test24\test25\test26\test27\test28\test29\test30\test
31\test32\test33\test34\test35\test36\test37\test38\test39\test40\test41\tes
t42\test43\a.d -c a.c

 

Error:

fatal error: opening dependency file
E:\ppc\issue\workspace\test1\test2\test3\test4\test5\test6\test7\test8\test9
\test10\test11\test12\test13\test14\test15\test16\test17\test18\test19\test2
0\test21\test22\test23\test24\test25\test26\test27\test28\test29\test30\test
31\test32\test33\test34\test35\test36\test37\test38\test39\test40\test41\tes
t42\test43\a.d: No such file or directory

compilation terminated.

 

 




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux