Note conio.h is NOT a standard header. I would use
system("CLS")
myself, but even that is not standard. Remember, C and C++ must operate on a variety of systems for which the concept of a screen differs.
There is also a conio devpack that is available for download through webupdate (tools:check for updates/packages) on the devpacks.org server. It will put things where they need to go.
In general, the libraries goes in the lib directory, and the headers in the include directory for Dev.
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Iam new to DevC++ :)
When I try to compile my c++ code I get:
[Linker error] undefined reference to `clrscr'
I've included
include <conio.h>
Do I have to link it somewhere in DevC++ or how should I get it to "understand" Clscr?
Also, where should I copy the .lib and .h files?
Note conio.h is NOT a standard header. I would use
system("CLS")
myself, but even that is not standard. Remember, C and C++ must operate on a variety of systems for which the concept of a screen differs.
There is also a conio devpack that is available for download through webupdate (tools:check for updates/packages) on the devpacks.org server. It will put things where they need to go.
In general, the libraries goes in the lib directory, and the headers in the include directory for Dev.
Wayne