www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/11/13:00:24

Message-ID: <37385CF9.61FA28F8@multimania.com>
From: Sylvain VIART <molo AT multimania DOT com>
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Link error: undefined reference
Lines: 33
Date: Tue, 11 May 1999 16:38:13 GMT
NNTP-Posting-Host: 206.172.152.16
X-Trace: news20.bellglobal.com 926440693 206.172.152.16 (Tue, 11 May 1999 12:38:13 EDT)
NNTP-Posting-Date: Tue, 11 May 1999 12:38:13 EDT
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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...

Someone have an idea ?

Sylvain.
-- 
Using :
VIM - Vi IMproved 5.3 (1998 Aug 30, compiled Aug 30 1998 21:47:07)
on MS-Windows 32 bit GUI version

Je suis présentement à Montréal
MAILTO:viarts AT jsp DOT umontreal DOT ca

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019