Sponsored Content
Full Discussion: getch & getche not in ubuntu
Top Forums Programming getch & getche not in ubuntu Post 302429081 by ramkrix on Saturday 12th of June 2010 07:53:14 AM
Old 06-12-2010
Question getch & getche not in ubuntu

Hi I tried executing a C rogram with getch or getche functions in my linux termibal @ ubuntu I used gcc compiler.

On compiling the code, it throws error as below. However, I included <stdio,h> and <stdlib.h> in my source code.


Code:
ganesh@ubuntu:~/my_programs/c/letusc/chap11$ gcc -o gb gb.c
/tmp/cc5aNZWD.o: In function `main':
gb.c:(.text+0x7a): undefined reference to `getch'
gb.c:(.text+0x9b): undefined reference to `getch'
collect2: ld returned 1 exit status


Ca any one please help me on this?

Thanks,
Ramkrix

Last edited by pludi; 06-12-2010 at 12:48 PM..
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies

2. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

3. Ubuntu

Ubuntu / Ubuntu File Manager / Config

I am using Ubuntu 9.10 with Gnome 2.28. I use the default Nautilus File Manager to view / manage files. Is there a way to add icons or customize the icons that are above the location bar and below the menus? There is a bar that has icons for "Back" "Forward" "Parent" above the location bar. I... (6 Replies)
Discussion started by: drewk
6 Replies

4. Shell Programming and Scripting

replace & with &amp; xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

5. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

6. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

7. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies
DCH-REPEAT(1)						      General Commands Manual						     DCH-REPEAT(1)

NAME
dch-repeat - repeats a changelog entry into an older release SYNOPSIS
dch-repeat --build-tree <PATH> dch-repeat --source-release <RELEASE> dch-repeat --target-release <RELEASE> dch-repeat --devel-release <RELEASE> dch-repeat --pocket <POCKET> dch-repeat -h DESCRIPTION
dch-repeat is used to repeat a changelog into an older release. It expects that --build-tree is laid out with each Ubuntu release as a separate directory ("feisty", "edgy", etc). For example, if gimp had a security update prepared for Feisty in $TREE/feisty/gimp-2.2.13, running dch-repeat in $TREE/edgy/gimp-2.2.13 would pull in the latest changelog from the Feisty build. OPTIONS
Listed below are the command line options for dch-repeat: -h or --help Display a help message and exit. --build-tree PATH Base of build trees. Default is /scratch/ubuntu/build. -s or --source-release RELEASE Which release to take changelog from. --target-release RELEASE Which release to build into. --devel-release RELEASE Which release is the development release. --pocket POCKET Which pocket to use. AUTHOR
dch-repeat was written by Kees Cook <kees@ubuntu.com>. This manual page was written by Jonathan Patrick Davies <jpds@ubuntu.com>. Both are released under the GNU General Public License, version 2. SEE ALSO
dch(1). ubuntu-dev-tools 10 August 2008 DCH-REPEAT(1)
All times are GMT -4. The time now is 02:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy