Thread: flushall in code::blocks !

  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    1

    flushall in code::blocks !

    Hello , This is my first post in this forum .
    I am using code::blocks as C compiler and I need to use the Gets (..) to read strings from user so Flushall is very recommanded .
    I try to use the flushall function but it seems not declared !!!
    undefined reference to `_flushall'
    . I have of course included the stdio.h library and I ve cheked that "flushall" is existing in this library !! so what doing?

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    _flushall is not in the standard <stdio.h>. MS provides it as part of their <stdio.h>, but that doesn't help much if you're not in a MS compiler. I would be surprised if anyone needed to use gets(), as no one ever should use gets(). With more information about what you want to do, we can provide more suggestions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code::Blocks Help
    By rakeshkool27 in forum C Programming
    Replies: 0
    Last Post: 01-16-2010, 08:25 AM
  2. library issues in CodeBlocks
    By everlearnin in forum C++ Programming
    Replies: 0
    Last Post: 06-02-2009, 08:44 PM
  3. Codeblocks crashes linux?
    By Shakti in forum Tech Board
    Replies: 1
    Last Post: 03-25-2009, 07:26 AM
  4. Code::Blocks doesn't like my enums and typedefs
    By muehl in forum C++ Programming
    Replies: 19
    Last Post: 02-12-2009, 10:48 AM
  5. Replies: 1
    Last Post: 01-11-2008, 09:34 AM