From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16709 invoked from network); 24 Nov 1999 17:54:27 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 24 Nov 1999 17:54:27 -0000 Received: from web117.yahoomail.com (web117.yahoomail.com [205.180.60.91]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id MAA08621 for ; Wed, 24 Nov 1999 12:54:26 -0500 Message-ID: <19991124175422.10132.rocketmail@web117.yahoomail.com> Received: from [24.0.139.66] by web117.yahoomail.com; Wed, 24 Nov 1999 09:54:22 PST Date: Wed, 24 Nov 1999 09:54:22 -0800 (PST) From: Designer Seven Subject: CCC and linking object files To: Alpha Linux "Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I've been trying to compile a few apps with CCC. However I seem to have a consistent problem and was hoping someone knowledgable on this list could help me. It seems that whenever I have multiple source (*.c) files that include , I end up getting linking errors. For example: source0.c - which uses source1.c - which also uses ccc -O2 -fast -c -o source0.o source0.c ccc -O2 -fast -c -o source1.o source1.c ccc -o program source0.o source1.o at the linking stage I keep getting "multiple function definition errors".. and more specifically, the functions are: __sigismember __sigaddset __sigdelset which are functions declared in sigset.h which is included by signal.h. here is a sample output from an actual compile: dialog.o: In function `__sigismember': dialog.o(.text+0x0): multiple definition of `__sigismember' defaults.o(.text+0x0): first defined here dialog.o: In function `__sigaddset': dialog.o(.text+0x30): multiple definition of `__sigaddset' defaults.o(.text+0x30): first defined here dialog.o: In function `__sigdelset': dialog.o(.text+0x60): multiple definition of `__sigdelset' defaults.o(.text+0x60): first defined here I'm not really a programmer, so my ignorance is keeping me from understanding why this is happening. (BTW, this all works without any problems using GCC/EGCS) I've seen the same exact errors when compiling the source code of other things too. Turning off the -fast doesn't help either. Other information: CCC 6.2 glibc 2.0.x RH 5.2 with many updates. TIA, D. __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one place. Yahoo! Shopping: http://shopping.yahoo.com