Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Press to continue in C

TimCerejaTimCereja Member Posts: 17
This works fine with my system, but refuses to compile on a server that I've uploaded it to:

printf("Press to Continue

");
while(getch() != 0x0d);

The error message is: undefined reference to 'getch'

Any idea how to define getch and get this to compile?

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    [color=Blue]Use the same compiler on a server which you use on your system. Or simply move the ready EXE file from your system to the server, so there is no need to compile it.[/color]
  • MuhammadMubeenMuhammadMubeen Member Posts: 8
    Check #include file in your program. Either it is included or not in your program? If yes then open "conio.h" file from your specifies directory of your complier and check it, either the definition of "getch()" function is exist or not?
Sign In or Register to comment.