www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/08/16:10:06

Xref: news2.mv.net comp.os.msdos.djgpp:4725
From: baren AT ix DOT netcom DOT com (The Great and Powerful Marcus)
Newsgroups: comp.os.msdos.djgpp
Subject: dumb newbie question: make and allegro library...
Date: Sat, 08 Jun 1996 15:59:58 GMT
Organization: Netcom
Lines: 47
Message-ID: <31b99e4d.3562626@nntp.ix.netcom.com>
NNTP-Posting-Host: war-mi2-09.ix.netcom.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hey folks,

Sorry to get in on the ground floor with such a dumb question, but...

I am running into a brick wall with this make program. I am (trying)
to use the mak373b distribution to compile my programs, which use the
Allegro library. From the command line, they compile just fine. It's
only under make that I have the problem. What happens is that it
apparently fails to link in the allegro headers. Here is the makefile:

SHELL = /bin/sh

FLAGS = ../lib/liballeg.a -liostream

vpath %*.h ../include

dots : colors.cpp
	gcc $(FLAGS) colors.cpp

I have tried a great many changes on this already. The SHELL, FLAGS
and vpath statements are late additions, the flags statement was
changed to reflect the absolute path of liballeg.a (from using the
switch -lalleg), and various permutations of:

dots.exe : colors.o
	(blah)

colors.o : colors.cpp
	(blah)

Yes, there is only one file. Anyway, the make program runs up to the
ld stage, then spews out about 100 references to undefined functions,
all of which come from the allegro library.

Points of note:  allegro.h is currently contained in ../allegro,
.../include, and the current directory. The allegro directory is even
in the Dos search path. Running a P75, 16 megs, with win95 in dos box.

Hmm, that's all I can think of... Any advice out there?


The Great and Powerful Marcus -- baren AT ix DOT netcom DOT com
------------------------------------------------------------------------------
"The area of a circle equals the area of a square whose side is 1/4 the
circumference of the circle. Working this out algebraically, we see that pi
must be equal to 4."
Indiana Legislature, House Bill #246, 1897, passed 67-0, tabled in the Senate.

- Raw text -


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