From: "florianx" Newsgroups: comp.os.msdos.djgpp References: <5pcectc76iigqk93ulqu1v9ooo0o4dheks AT 4ax DOT com> Subject: Re: Rhide/DJGPP Multiple source file problems. Date: Sun, 1 Apr 2001 17:14:46 +0200 Organization: Club Dr-DOS - www.drdos.org X-Newsreader: Microsoft Outlook Express 4.71.1712.3 X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Lines: 27 Message-ID: <3ac745ca$0$18874@SSP1NO25.highway.telekom.at> NNTP-Posting-Host: 212.183.96.106 X-Trace: newsreader01.vienna.highway.telekom.at 986138058 18874 212.183.96.106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Error: term.o: In function `com1_at_exit(void)': >Error: term.cpp(.text+0x4): multiple definition of >`com1_at_exit(void)' >Error: selector.o(.text+0x4):selector.cpp: first defined here >Error: term.o(.data+0x0):term.cpp: multiple definition of `port1' >Error: selector.o(.data+0x0):selector.cpp: first defined here >There were some errors You must declere as extern. in GPS.H fe.: extern int variable1; extern char * pointer; and in ONE .CPP file: int variable1; char *pointer1; I hope, this helps. bye, flox