Path: chuka.playstation.co.uk!news From: "Alan Marshall" Newsgroups: scea.yaroze.programming.codewarrior Subject: Linking Problems (I think!) in CW Date: Tue, 9 Mar 1999 18:32:50 -0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 81 Message-ID: <7c3pmc$l2g19@chuka.playstation.co.uk> NNTP-Posting-Host: ppp-1-11-17.access.telinco.net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi, I'm having trouble converting a program which compiles fine under GNU, I.e. no warnings or errors (!!!), yet in Codewarrior, I get Link Error : multiply-defined 'othWorld' in Init.c Previously defined in Address.c Link Error : multiply-defined 'otWorld' in Init.c Previously defined in Address.c Link Error : multiply-defined 'othWorld' in Init.c Previously defined in Address.c Link Error : multiply-defined 'out_packet' in Init.c Previously defined in Address.c Link Error : multiply-defined 'view' in Init.c Previously defined in Address.c Link Error : multiply-defined 'fllights' in Init.c Previously defined in Address.c my GNU makefile is thus: CFLAGS = -Wall -g LINKER = -Xlinker -Ttext -Xlinker 80140000 PROG = main OBJS = pad.o address.o init.o structs.o texts.o threed.o main.o all: $(PROG) main : $(OBJS) $(CC) $(LINKER) $(OBJS) -o $@ .c.o: $(CC) $(CFLAGS) -funsigned-char -c $< clean: del $(PROG) del *.o all th .h files have #ifndef __FILENAME__ #define __FILENAME__ code #endif Address.c has #include #include #include "address.h" init.c has #include #include "address.h" #include "init.h" and the other .c files include the above .h files Is codewarrior linking in a different order to my Makefile or what else might be going on? Any help/idea would be greatly appreciated, Chears Al admars@rocketmail.com