Click here to Skip to main content
15,905,238 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sometimes whatever the code I am compiling, I am getting this error

collect2: fatal error: vfork: Resource temporarily unavailable
compilation terminated.

Why is that so?

What I have tried:

any code.
I did not understand why I am getting this error.
Updated 24-Jun-21 19:12pm
KarstenK 25-Jun-21 4:29am    
you get an error because something has gone wrong or you made a mistake ;-)
_-_-_-me 25-Jun-21 5:30am    

1 solution

If you don't understand an error message, the first thing to do is google it:
collect2: fatal error: vfork: Resource temporarily unavailable - Google Search[^]
The top hit explains what the problem is: c++ - cpp: vfork: Resource temporarily unavailable - Stack Overflow[^]

Basically, the machine is too busy to create a new process to run the compiler because too many other people are using it at that moment.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900