delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/21/10:58:51

From: cs19 AT cityscape DOT co DOT uk (BDC Client Team)
Newsgroups: comp.os.msdos.djgpp
Subject: Simple Query on multiple sources
Date: Mon, 21 Apr 1997 13:20:16 GMT
Organization: IP-GOLD User
Message-ID: <861628816.14833.0@itsb.demon.co.uk>
NNTP-Posting-Host: itsb.demon.co.uk
Lines: 15
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Can anyone help me with mulitple sources? 

I understand about compiling different sources to .o files and then
linking the .o's to a .exe, but I am unsure about #includes. 

When you have (for example) two sources foo.c and bar.c and you wish to
use the allegro library, I assume that you would only need to 
#include "allegro.h" in the source that has the main() procedure and that 
you could call allegro routines from within the other one?

Any clarification on this would be really helpful

Thanks

Neil

- Raw text -


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