Date: Tue, 08 Nov 1994 20:37:51 -0500 (CDT) From: Aaron Ucko Subject: Re: redifinition of rawclock in libc and grx To: vincent AT physique DOT ens DOT fr Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO >there is a redifinition of rawclock in grx103m1 and libc.a ver112m2 >which library should be modify ...! > >this is the compilation error message when I add clock() in the >mousetest.c prorgram which I rename mvc.c here > >gcc -Wall -O -I../include -L../lib -o mvc mvc.c -lgrx -lm >mvc.c: In function `mousetest': >mvc.c:66: warning: int format, long int arg (arg 2) >fake(.text+0xc): multiple definition of `rawclock' >mouse.c(.text+0x0): first defined here I got that message too--the odd thing was, all I had to do was recompile mouse.c and stick the new .o in libgrx.a. No source modifications or anything...I suppose a corollary to the Clarke quote Leisner cited is "any sufficiently complex software is indistinguishable from magic" :-) More seriously, I also got a problem involving _IO_stdin et al. when linking a simple C++ program--seems I needed to remove stdfiles.o from libgpp.a. --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?