Thread: error

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    14

    error

    i get those 2 warning, how do i fix it, check the code in the attachment

    c:\lottery\lottery\lottery.c(60) : warning C4013: 'getch' undefined; assuming extern returning int
    c:\lottery\lottery\lottery.c(17) : warning C4101: 'tick' : unreferenced local variable

  2. #2
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Without even looking at the code I can tell you the first error is likely because your compiler doesn't support getch(). The second is just telling you that you declared a variable called tick and you never use it in your program.
    If you understand what you're doing, you're not learning anything.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    OK, now stop posting a new thread every time you have a new compiler warning with your program.
    See other threads.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 09:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 01:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM