EmBitz

Full Version: collect2.exe: fatal error: CreateProcess: No such file or directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I have a project with a huge amount of files. When adding further files to the project compilation is successful but during linker phase I have this error:
"collect2.exe: fatal error: CreateProcess: No such file or directory"

On Windows the maximum length of the string (including all arguments) passed to CreateProcess() is 32768 characters and it looks like the final linker command exceeds that limit.
A suggested workaround would be to pass the inputs to the linker via a file.

Is there a similar or other workaround to this problem in Embitz?

Thank you!
Operton
Could you divide the project in modules which can be compiled to libraries? This would not only shrink the linker cli invocation but also the compile time.

And libraries are, if build with the right options, debuggable too.