I am not sure exactly what causes this problem. But you can ignore this as you just started with simple programs and not linking any libraries while compiling.
Can you try
Code:
gcc -c -Wall -o file file.c
. This command is producing the same error as you posted.
But without option "-c" it works fine for me. (this option stops the compiler from invoking the linker. But you have not mentioned this option but still getting this error seems to odd.
Hi
how to check input is "empty" and "numeric" in ksh?
e.g:
./myscript.ksh k
output show: invalid number input
./myscript.ksh
output show: no input
./myscript.ksh 10
output show: input is numeric (6 Replies)
I have a trouble in my script when i use EOF inside block if.
If i use EOF whitout block if I don´t have problem.
Guys any ideas?
Sorry for my terrible English.
#!/bin/sh
set -xv
HOST='ftp.fiction.com.br'
USER='fictionuser'
PASS='fictionpass'
FILE='ftpteste.txt'
busca=`find... (4 Replies)
Rebuilding a server (T2000) from a flash archive I created on another server. Using a Solaris 10/08 DVD to boot from the was going to point it tot he flash archive and pull it over NFS. I've done this many times with success until now.
It initially boots off the DVD, you input the... (5 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Well, my first post... thanks in advance! Can applications be notified of the X Window close (with "X" button) so the signal handler can run a cleanup process method?
About the app: built with GNU C/C++ on Solaris 10, with WxWidgets. It is launched by a shell script as a background task. The... (2 Replies)
// AIX 6.1
What I am trying to accomplish is to display the user name and the last login date and time in one line:
for usrlist in $(cat alluser.txt)
do
$usrlist
perl -e 'print scalar localtime `lsuser -a time_last_login $usrlist | awk -F '=' '{print $2}'`'
done
However, it... (8 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hi, I am a new Unix Guru with very little experience but have the task of P2Ving an old HP Proliant ML370 G5 server to VMware ESX 4.1 or ESXi 5.5.
System seems to boots fine but when trying to remove HP software, configure TCP/IP or a driver, I am receiving:
--------
... (7 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT HPUX
ungetc_unlo
ungetc(3S)ungetc(3S)NAME
ungetc() - push character back into input stream
SYNOPSIS
Obsolescent Interface
DESCRIPTION
inserts the character c (converted to an unsigned char) into the buffer associated with an input stream. That character, c, is returned by
the next call to (see getc(3S)) on that stream. A successful intervening call to a file positioning function with stream or erases all
memory of the inserted characters.
affects only the buffer associated with the input stream. It does not affect the contents of the file corresponding to stream.
One character of pushback is guaranteed.
If c equals EOF, does nothing to the buffer and returns EOF.
Obsolescent Interface
pushes character back into input stream.
APPLICATION USAGE
After is applied to a stream, the stream becomes byte-oriented (see orientation(5)).
RETURN VALUE
If successful, and return c and clear the end-of-file indicator for the stream. and return EOF if they cannot insert the character.
WARNINGS
is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use
SEE ALSO flockfile(3S), fseek(3S), fgetpos(3S), getc(3S), setbuf(3S), orientation(5), thread_safety(5).
STANDARDS CONFORMANCE ungetc(3S)