Error: Id returned 1 exit status (undefined reference to ‘main’)
“Error: Id returned 1 exit status (undefined reference to ‘main’)” is a very common C and C++ linker Error. Just by looking at the statement, we can tell that there is an error in the main function. main() function Every C++ and C program contain a mandatory inbuilt function called main(). The compiler starts the execution from the main… Read More »