I had a problem with path limitation Here, for example, I run this command ...:
String [] cmd = new String [] {"Command.com", "/ C", "Resource \\ gcc.exe", "-E",
in_path, ">",
"Out_path"};
in_path: path where the cpp file directory is located
out_path: the output file after processing the first with the same name as the input, and thus fichier.cpp
for example: in_path = d: /directorycpp/file1.cpp out_path = file1.cpp
Well, there are two cases that do not work in tests. If the path is given when the cpp file for the test is too long. If the path is short and the file name contains more than 8 caractère, then this is not so. I read that gcc is limited, but when I run my command on the command line it passes it. So why doesn’t it work in my case Should I add a parameter or another?
source share