Help In C

Jonathan Marsden jmarsden at
Sun Jul 5 22:06:49 BST 2009

supravat paul wrote:

> Hello every one I'm using Ubuntu 9.04 Linux.... I'm facing some
> problem while compiling my C program:::

This is not the correct mailing list for beginner C programming
questions.  This list is for those seeking help in becoming a Ubuntu MOTU.

> /tmp/cc07EFXt.o: In function `main':
> q2.c:(.text+0x42): undefined reference to `getch'
> collect2: ld returned 1 exit status

The function getch() is not a standard C function.  Try using getchar()
instead.  But please, seek C programming help from a C programming list,
not here on ubuntu-motu-mentors.


More information about the Ubuntu-motu-mentors mailing list