You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution was much simpler. After following a discussion about regarding 0xC0000417 ( invalid parameter to the c runtime) in a larger open source project and their fixes for it(using char* pointers instead of char[] arrays of defined length, circumventing the security checks for bounded arrays), i slowly realized that my problem also could be related to a string length issue. But not for the to-be-created program, but for the Microsoft compiler itself.
And indeed, looking up the specs delivers a string limit of 8191 characters for the command line (Command prompt (Cmd. exe) command-line string limitation). As CMake sadly uses absolute paths in everything, this becomes an issue quickly.
So the simple answer to my utmost dull problem is: The command line for the compiler was to long. I had my project in something like d:/scratch/thomas/projects/current/gimias which caused apparently the overflow for cl.exe at the stage of the precompiled headers target. One can blame the guys in Redmond for just letting their compiler crash instead of giving a precise error message in that case.
Good thing is, after 2 weeks of installing every hotfix possible my Visual Studio is up to date :P
One thing i noted then, as i did a lot with MITK before, is that the current makefiles of MITK check the build path length for that reason and won`t generate the make files if too long. Maybe its worth looking into it and integrate that function, it might safe other people some trouble in the future.
The text was updated successfully, but these errors were encountered:
From a user:
The solution was much simpler. After following a discussion about regarding 0xC0000417 ( invalid parameter to the c runtime) in a larger open source project and their fixes for it(using char* pointers instead of char[] arrays of defined length, circumventing the security checks for bounded arrays), i slowly realized that my problem also could be related to a string length issue. But not for the to-be-created program, but for the Microsoft compiler itself.
And indeed, looking up the specs delivers a string limit of 8191 characters for the command line (Command prompt (Cmd. exe) command-line string limitation). As CMake sadly uses absolute paths in everything, this becomes an issue quickly.
So the simple answer to my utmost dull problem is: The command line for the compiler was to long. I had my project in something like d:/scratch/thomas/projects/current/gimias which caused apparently the overflow for cl.exe at the stage of the precompiled headers target. One can blame the guys in Redmond for just letting their compiler crash instead of giving a precise error message in that case.
Good thing is, after 2 weeks of installing every hotfix possible my Visual Studio is up to date :P
One thing i noted then, as i did a lot with MITK before, is that the current makefiles of MITK check the build path length for that reason and won`t generate the make files if too long. Maybe its worth looking into it and integrate that function, it might safe other people some trouble in the future.
The text was updated successfully, but these errors were encountered: