delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/05/22/13:54:12

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to include source files?
Date: 22 May 2001 15:19:01 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 21
Message-ID: <9ee015$3jp$1@nets3.rz.RWTH-Aachen.DE>
References: <3B0A7E99 DOT 54F21F28 AT gwdg DOT de>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 990544741 3705 137.226.32.75 (22 May 2001 15:19:01 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 22 May 2001 15:19:01 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thomas Schmidt <tschmid8 AT gwdg DOT de> wrote:

> The "hello_world" program is just a tool of solving the REAL problem, of
> course.  The real problem is that DJGPP doesn't recognize (i.e., claims
> "implicit declaration" of) two ALLEGRO routines: _install_irq() and
> _remove_irq(), both of which are in "c:\djgpp\allegro\src\djgpp\irq.c".

Ahh... looks like you haven't grasped the C Preprocessor directives,
yet.  Either that, or you didn't install Allegro correctly.  

The 'implicit declaration' is a warning, telling you that the compiler
knows nothing about these allegro routines, at the time your source
calls them, so it's forced to guess.  You're lacking the line

	#include <allegro.h>

somewhere close to the beginning of the .c file. This is basic C
language, and in no way particular to RHIDE or DJGPP.
-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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