Thread: do i need a lib for clrscr()?

  1. #1
    Codigious FingerPrint's Avatar
    Join Date
    Mar 2006
    Posts
    60

    do i need a lib for clrscr()?

    Im using Dev C++ 4.9.2 as my compiler and it wont let me use clrscr(). It always says, clrscr() undefined please define this function.

    I know a few friends who use other compilers and it works fine in theirs. I dont know if my program will work in another compiler yet, so I was just gonna add a lib or a header or something that would make clrscr() work. If there is such a thing. Is there?
    Code:
    /* ------------------------------------------------------------------*/
                               // INSERT CODE HERE
    /* ------------------------------------------------------------------*/

  2. #2
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    715
    Gotta love the "please fix this for me, but I'm not going to tell you which functions we're allowed to use" posts.
    It's like teaching people to walk by first breaking their legs - muppet teachers! - Salem

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Its always good to know what's standard portable C++, and what's not. Here a couple of links to C++ Standard Library references. If you don't find the function here it's non-standard.

    cppreference.com
    dinkumware.com


    .

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using VC6 link VC7 static lib error
    By George2 in forum C++ Programming
    Replies: 5
    Last Post: 06-29-2006, 10:58 PM
  2. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  3. Convert Microsoft LIB to MingW compatible lib
    By tigs in forum Windows Programming
    Replies: 0
    Last Post: 07-20-2004, 06:53 PM
  4. Making a LIB file from a DEF file for a DLL
    By JMPACS in forum C++ Programming
    Replies: 0
    Last Post: 08-02-2003, 08:19 PM
  5. help me using lib from Visual C++ 6
    By oskilian in forum Windows Programming
    Replies: 3
    Last Post: 10-11-2001, 11:28 AM