Message-ID: <37399367.DC567A65@multimania.com> Date: Wed, 12 May 1999 10:42:47 -0400 From: Sylvain VIART X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: [Fwd: Link error: undefined reference] Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com Slvain VIART wrote: me ;) > > 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 defined in vparam.c > I used this command line (which work fine 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... > > Someone have an idea ? > Sylvain. -- Je suis présentement à Montréal MAILTO:viarts AT jsp DOT umontreal DOT ca