[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/usr/bin/ld: Unresolved: strnlen
From: |
bioinfo Gu |
Subject: |
/usr/bin/ld: Unresolved: strnlen |
Date: |
Thu, 29 Jan 2004 08:18:13 -0800 (PST) |
Hi,
I want to compile one program with gcc, but the system give me error: I am using
OSF1 V5.1 732 alpha
# make
......
gcc -g -DRELEASE=1.0beta -DRELEASEDATE="December 2003" -I./h -o targetscan targetscan.o alig
nio.o interleaved.o msf.o selex.o seqencode.o sqerror.o sqio.o getopt.o iupac.o revcomp.o sre_
ctype.o sre_math.o sre_string.o types.o dist_vars.o energy_par.o fold.o fold_vars.o inverse.o
list.o naview.o params.o part_func.o ProfileDist.o read_epars.o RNAstruct.o stringdist.o subop
t.o treedist.o utils.o -lm -lgcc -lc
/usr/bin/ld:
Unresolved:
strnlen
collect2: ld returned 1 exit status
*** Exit 1
Stop.
Here is my Makefile:
# Makefile for TargetScan
#
# See "INSTALL" for installation instructions.
# This code is distributed under terms of the GNU General Public License.
# See "README", "COPYING", and "GNULICENSE" for details.
#
RELEASE = 1.0beta
RELEASEDATE = "December 2003"
RFLAGS = -DRELEASE=$(RELEASE) -DRELEASEDATE=$(RELEASEDATE)
# Where everything gets installed.
# You might change this to /usr/local/bin and /usr/local/man.
#
BINDIR = $(HOME)/bin
# Compilation flags. Set your compiler and any necessary global
# switches here. Use an ANSI-compliant C compiler.
#
CC = gcc
CFLAGS = -g
# Machine-specific definitions. You shouldn't need any.
#
MDEFS =
#######
## should not need to modify below this line
#######
SHELL = /bin/sh
PROGS= targetscan
EXAMPLES=
OBJS= targetscan.o\
alignio.o\
interleaved.o\
msf.o\
selex.o\
seqencode.o\
sqerror.o\
sqio.o\
getopt.o\
iupac.o\
revcomp.o\
sre_ctype.o\
sre_math.o\
sre_string.o\
types.o\
dist_vars.o\
energy_par.o\
fold.o\
fold_vars.o\
inverse.o\
list.o\
naview.o\
params.o\
part_func.o\
ProfileDist.o\
read_epars.o\
RNAstruct.o\
stringdist.o\
subopt.o\
treedist.o\
utils.o
SQUIDSRC= alignio.c\
getopt.c\
interleaved.c\
sqerror.c\
sqio.c\
iupac.c\
msf.c\
revcomp.c\
seqencode.c\
selex.c\
sre_ctype.c\
sre_math.c\
sre_string.c\
types.c
SQUIDHDRS= squid.h sqfuncs.h rk.h gnuregex.h
VIENNASRC= dist_vars.c\
energy_par.c\
fold.c\
fold_vars.c\
inverse.c\
list.c\
naview.c\
params.c\
part_func.c\
ProfileDist.c\
read_epars.c\
RNAstruct.c\
stringdist.c\
subopt.c\
treedist.c\
utils.c
VIENNAHDRS= fold_vars.h fold.h part_func.h inverse.h RNAstruct.h\
treedist.h stringdist.h profiledist.h
SRC="" targetscan.c $(SQUIDSRC) $(VIENNASRC)
HDRS= seqpattern.h sequence.h
all: $(OBJS)
$(CC) $(CFLAGS) $(RFLAGS) -I./h -o targetscan $(OBJS) -lm -lgcc -lc
install: all
cp $(PROGS) $(BINDIR)/
clean:
-rm -f *.o *~ *.aux *.dvi *.log core TAGS $(PROGS)
.c.o:
$(CC) $(CFLAGS) $(MDEFS) -I./h -c $<
Thank you very much.
Bio
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- /usr/bin/ld: Unresolved: strnlen,
bioinfo Gu <=