www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/27/05:30:15.1

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Extern variables not found (was: (none) )
Date: 27 Mar 2002 09:04:48 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 25
Message-ID: <a7s1vg$812$2@antares.lu.erisoft.se>
References: <20020327074036 DOT 16923 DOT qmail AT web21408 DOT mail DOT yahoo DOT com>
NNTP-Posting-Host: lws256.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tina (quitestars AT yahoo DOT com) wrote:

You should put in a meaningful Subject in your posts.

: The programs have global variables, so there are
: extern variables except that one file defines the
: variables directly. But the building error says
: "undefined reference to" these extern variables. I
: think it may not find the head files.

Undefined references can't be a result of not finding header
files. You should read up on what header files are for.

You are probably not including the object file or library that
includes those variables in the link command.

: Can I put an include directory in the GCC command for
: searching the head files? 

You could (do "info gcc invoking"). But it won't solve your problem.


Right,

						MartinS

- Raw text -


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