delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/28/11:35:07

From: Bjoern DOT Appel AT frankfurt DOT netsurf DOT de (Bjoern Appel)
Newsgroups: comp.os.msdos.djgpp
Subject: Beginner: C / Allegro: "-lalleg"
Date: Sun, 28 Dec 1997 14:18:44 GMT
Organization: Hamnet
Message-ID: <34a65d39.1813898@news2.frankfurt.netsurf.de>
NNTP-Posting-Host: deck-128.frankfurt.netsurf.de
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hello, 
I'm new to the C-language and installed the DJGPP, RHIDE and Allegro
software. (This is great stuff :-))
When I want to compile a Allegro-Program, lets say the example, I have
to type:

gcc ex1.c -o ex1.exe -lalleg    <-'

No, I don't have any problems with it, everything works fine. But can
someone explain me, why I have to use the "lalleg" ? Why is it not
enough to have the "#include<allegro.h>" in the source-file, compared
to Pascal's "Uses Crt,..." ?

And something about RHIDE:
In RHIDE I have to change "Options -> Libraries" every time I start
the IDE and want to compile an Allegro-Program. Is there any way to 
save the changes I made ?

Hope these questions are not too dumb and someone is willing to answer
me.

Bjoern

- Raw text -


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