Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

main function giving error warning

Tags:

c++

Why does microsoft visual studio underline int with redline saying

"IntelliSense: PCH warning: cannot find a suitable header stop location. An intellisense PCH file was not generated" for this code.

int main(){
    return 0;
}

It runs fine

like image 685
199user911 Avatar asked Nov 20 '25 16:11

199user911


1 Answers

IntelliSense is the system the pops up the drop-down list with possible code completions.

A PCH (precompiled header) is a file generated by the compiler to speed up repeated compilation.

IntelliSense is telling you that it will be unbearably slow because you haven't configured PCH for your project. Nothing more.

like image 86
Sebastian Redl Avatar answered Nov 22 '25 06:11

Sebastian Redl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!