I can't get the read command to work.
Asked by
Gerald Newill
jerry@ubuntu:~$ cat > kb_read
#
# kb_read
# A sample program to show the read command
#
echo
echo "Enter your name:\c"
read name
echo "Your name is $name"
echo
jerry@ubuntu:~$ g++ kb_read -o test
kb_read: file not recognized: File format not recognized
collect2: ld returned 1 exit status
jerry@ubuntu:~$
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Gerald Newill for more information if necessary.
To post a message you must log in.