X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Richard Head Subject: Linker Errors? Date: Fri, 1 Feb 2008 16:21:50 +0000 (UTC) Lines: 12 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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? -- 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/