www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/08/09:32:53

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro example linking??
Date: 8 Nov 1996 13:19:00 GMT
Organization: Oxford University, England
Lines: 36
Message-ID: <55vc04$t9e@news.ox.ac.uk>
References: <01bbcd1e$bf9beac0$LocalHost AT miller>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Neil Miller (miller AT citilink DOT com) wrote:

:   I am trying to compile the first example for Allegro (EX1.C).  I tryo to
: compile it and I get these errors while linking:

:      EX1.cc(.text+0x19):undefined reference to 'allegro_init'
:      EX1.cc(.text+0x1e):undefined reference to 'install_keyboard'
:  and many more exactly like it, but (.text+?x??) is different & the
: 'different'.

: Is there anything I am doing wrong??  I put allegro.h in the directory and
: made a project.  It compiles with no errors, but it won't link.

Make sure the allegro library liballeg.a is being linked in... in RHIDE 
you need to go to the libraries section of one of the menus, and fill in 
one of the options with 'alleg', making sure the checkbox is selected. On 
the command line, outside RHIDE, you would type:

 gcc EX1.cc -lalleg

Put the -lalleg at the end of the line. Also, make sure allegro.h is 
copied to your include directory and liballeg.a is copied to your library 
directory, or that you modify your djgpp.env in such a way that it can 
find these files.

--
George Foot

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |""""""""""""""""""""""|
>Email: george DOT foot AT merton DOT ox DOT ac DOT uk      < |Snail Mail:(*)        |
>   or: mert0407 AT sable DOT ox DOT ac DOT uk          < | _     George Foot    |
>  Web: http://users.ox.ac.uk/~mert0407/ < |(@)    Merton College |
>  Ftp: mc31.merton.ox.ac.uk (#)         < |~~~~   Oxford OX1 4JD |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ |______________________|
(#) Theoretically...    ||    (*) Please allow 28 days for delivery

- Raw text -


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