getch

This is a discussion on getch within the C Programming forums, part of the General Programming Boards category; hi there. what does it mean when i get this error? stringgg.c:60: warning: implicit declaration of function `getch' it also ...

  1. #1
    snickers
    Guest

    getch

    hi there.

    what does it mean when i get this error?

    stringgg.c:60: warning: implicit declaration of function `getch'

    it also came with

    /cygdrive/c/WINDOWS/TEMP/ccuSpxsn.o(.text+0x155):string.c: undefined reference to `getch'

  2. #2
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    State your Compile and program.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>warning: implicit declaration of function `getch'
    It means you forget to #include the correct header file
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Registered User Cela's Avatar
    Join Date
    Jan 2003
    Posts
    362
    >>warning: implicit declaration of function `getch'
    It means that the first time your compiler sees getch() is when it's used, this is a bad thing, don't forget to include the header file getch() is in.
    *Cela*

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. Pls repair my basketball program
    By death_messiah12 in forum C++ Programming
    Replies: 10
    Last Post: 12-11-2006, 04:15 AM
  3. Pause a C program without getch()
    By swgh in forum C Programming
    Replies: 4
    Last Post: 02-20-2006, 10:24 AM
  4. Clearing input buffer after using getch()
    By milkydoo in forum C++ Programming
    Replies: 3
    Last Post: 07-21-2003, 11:04 PM
  5. Problems with getch()
    By GrNxxDaY in forum C++ Programming
    Replies: 14
    Last Post: 08-12-2002, 02:11 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21