delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
References: | <loom DOT 20080201T161144-394 AT post DOT gmane DOT org> |
Subject: | RE: Linker Errors? |
Date: | Fri, 1 Feb 2008 16:42:16 -0000 |
Message-ID: | <00bf01c864f1$67287620$2e08a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <loom.20080201T161144-394@post.gmane.org> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 01 February 2008 16:22, Richard Head wrote: > I get the following output when I try and link 3 object files to form my > exe. > > gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe > fusionFileIO.o:fusionFileIO.c:(.rdata+0x0): multiple definition of > `_BAD_IMAGE' main.o:main.c:(.rdata+0x0): first defined here > collect2: ld returned 1 exit status > make: *** [fusionTK.exe] Error 1 > > "BAD_IMAGE" is a constant declared in a header file used in all 3 of the > object files. > > Where am I going wrong? You need to refresh your memory on the difference between a declaration and a definition. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |