Sender: nate AT cartsys DOT com Message-ID: <3738915C.8FDB7E76@cartsys.com> Date: Tue, 11 May 1999 13:21:48 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.5 i586) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: Link error: undefined reference References: <37385CF9 DOT 61FA28F8 AT multimania DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Sylvain VIART wrote: > > Hello, > > I'm using djgpp v2, gcc --version 2.7.2.1 > > Here the senario : > I have 3 files in the same directory : > gene.c > vparam.c > vparam.h > > gene.c use the fonction in vparam.c > I used this command line (which do the job under Unix) > >gcc -c vparam.c > >gcc -o gene gene.c vparam.o > and I got : > (.text+0xd0):gene.c: undefined reference to `put_error' > > put_error prototype is : > void put_error(int val, ...); > > There's some other shared variables between vparam.c and gene.c > but it's the only linker problem... Do you actually define it in one of those files? -- Nate Eldredge nate AT cartsys DOT com