Menu

Clrscr error

Kim
2005-04-14
2012-09-26
  • Kim

    Kim - 2005-04-14

    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?

     
    • Wayne Keen

      Wayne Keen - 2005-04-14

      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

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.