I have project (in c)  which run good on sun unix. I want to let it run in
redhat
7.2 linux. but when i try to compile i got error message like following

------------------------------------------------------------

cc catdat.o bslct.o chitst.o choles.o choles3.o cvcmp.o datent.o decomp.o
de
comp2.o decomp3.o dfpmin.o dkernl.o eigenvec.o ferr.o fleopen.o fslct.o
func
.o gammln.o gammp.o glogit.o gprint.o groups.o grwtre.o jcksmpl.o
keywdrd.o
kmnscl.o ksmllst.o matrix.o mchtst.o modnet.o myqsort.o netfit.o ppchi2.o
pr
dct.o prdtre.o prntre.o residh.o resids.o rndm1.o rspmap.o rules.o sign.o
so
rtdat.o split.o strngfx.o vector.o xbuild.o zscores.o -o catdat -lm -lc
-L/u
sr/openwin/lib -lX11
datent.o: In function `datent_':
datent.o(.text+0xd1): the `gets' function is dangerous and should not be
use
d.
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make: *** [catdat.time] Error 1
-------------------------------------------------------------------------
I guess something is wrong with the compilation flags orginally set for
sun unix. How can i  change it to let it work

any suguession will be greatly appreciated.


the orignal compilation flag for sun and other system is listed below.


-------------------------------------------------------------------- 
# For the ALPHA
#CFLAGS = -O2 -ieee_with_no_inexact -Olimit 1000
#CFLAGS = -g -ieee_with_no_inexact -Olimit 1000
#PFLAGS = -lm -lc -lX11
#.c.o: ; cc -c $(CFLAGS) $*.c

# For the SUN
CFLAGS = -O2 -I/usr/openwin/share/include
PFLAGS = -lm -lc -L/usr/openwin/lib -lX11
.c.o: ; cc -c $(CFLAGS) $*.c

# For Borland 4.5 C++
#.AUTODEPEND
#CC = -c -p- -vi -W -X- -P -O2
#CD = -D_OWLPCH;
#INC = -Ic:\bc4\include
#LIB = -Lc:\bc4\lib
#.c.obj:
#  bcc32 $(CC) $(CD) $(INC) $*.c

--------------------------------------------


Thanks 
--------------------------------
Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900
--------------------------------



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to