How can I cause a compile loop in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I cause a compile loop in c++?

I want to write a program in c++ in a simple source.cpp file to make compile loop for ever! whithout header files and etc.

11th Jan 2017, 7:24 AM
kerpoo
kerpoo - avatar
4 Answers
+ 7
One way I can think of is to create massive nested loops to jam the linker.
11th Jan 2017, 9:50 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
while (true) {}
11th Jan 2017, 7:28 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
Why would you do that
11th Jan 2017, 7:36 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
compile loop means : compiling never finishes!
11th Jan 2017, 7:32 AM
kerpoo
kerpoo - avatar