From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Message-ID: From: To: <9fans@cse.psu.edu> Subject: [9fans] gcc trouble Date: Fri, 7 Nov 2003 17:27:00 +0100 Topicbox-Message-UUID: 81c72a6c-eacc-11e9-9e20-41e7f4b1d025 Hi, I ran into a (supposedly trivial) problem while linking using gcc: term% gnu/gsh $ make make: *** No targets specified and no makefile found. Stop. $ make -f makefile [blah blah....] gcc -O6 -Wall -o carnac main.o get_sequences.o find_blocks.o = print_alignment.o types.o find_stems.o correlate.o fold.o tree.o = print_folding.o string.o accumulation.o parse.o graph.o clique.o nuss.o = #-lm #-lefence string.o(.text+0x43): undefined reference to `strdup' string.o(.text+0xa3): undefined reference to `strdup' string.o(.text+0x103): undefined reference to `strdup' string.o(.text+0x163): undefined reference to `strdup' string.o(.text+0x319): undefined reference to `strdup' string.o(.text+0x1b0): more undefined references to `strdup' follow parse.o(.text+0x811): undefined reference to `getopt' parse.o(.text+0x922): undefined reference to `optarg' parse.o(.text+0x946): undefined reference to `optarg' parse.o(.text+0x96a): undefined reference to `optarg' parse.o(.text+0x98c): undefined reference to `optarg' collect2: ld returned 1 exit status make: *** [carnac] Error 1 $=20 What am I missing? Cheers, ++pac. Peter A. Cejchan Lab of Paleobiology and Paleoecology Institute of Geology Academy of Sciences Rozvojova 135 16502 Prague, Czechia http://www.gli.cas.cz/home/cejchan --- Odchoz=ED zpr=E1va neobsahuje viry. Zkontrolov=E1no antivirov=FDm syst=E9mem AVG (http://www.grisoft.cz). Verze: 6.0.536 / Virov=E1 b=E1ze: 331 - datum vyd=E1n=ED: 3. 11. 2003 =20