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