Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
collect2.exe: fatal error: CreateProcess: No such file or directory
#1
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
Reply
#2
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)