www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/28/18:00:49

From: "Tom Morton" <tmorton AT yikesstation DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Linux Allegro problems. [longish]
Date: Mon, 27 Dec 1999 17:46:12 -0000
Organization: Yikes Station Ltd
Lines: 103
Message-ID: <84884q$7in$1@news7.svr.pol.co.uk>
NNTP-Posting-Host: modem-102.tungsten.dialup.pol.co.uk
X-Trace: news7.svr.pol.co.uk 946316250 7767 62.136.36.230 (27 Dec 1999 17:37:30 GMT)
NNTP-Posting-Date: 27 Dec 1999 17:37:30 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,
I'm having some problems compiling an allegro program
in linux. I'm using allegro 3.9.30 (WIP) on both my DOS
and my Linux box. The allegro examples work so I assume
I have correctly installed it on both systems. The program
compiles without warnings on linux & dos but gives this
error at the end of the compile on linux:


--- compiler output -------

gcc -Wall -O2 -s -c tables.c
gcc -Wall -O2 -s -c utils.c
gcc -Wall -O2 -s -c variable.c
gcc -Wall -O2 -s -o arcturus calcmove.o collide.o draw.o effects.o
event1.o galaxy.o game.o init.o inputs.o main.o menu.o mouse.o rng.o
stars.o station.o tables.o utils.o variable.o
`/usr/local/bin/allegro-config --libs`
/usr/local/lib/liballeg-3.9.30.so: undefined reference to
`_mangled_main_address'
collect2: ld returned 1 exit status
make: *** [arcturus] Error 1
[root AT k6233 src]#

----------------------------

Any idea what is causing this error? I'm using mandrake
linux 6.1 (based on Redhat 6.0).
The makefile is virtually unchanged from the DOS one:


------- makefile.lnx -------

# File: makefile.lnx

#
# Arcturus Linux Allegro makefile
#


#
# Basic definitions
#

# Objects
OBJS = \
  calcmove.o collide.o draw.o effects.o event1.o galaxy.o \
  game.o init.o inputs.o main.o menu.o mouse.o \
  rng.o stars.o station.o tables.o utils.o variable.o


# Compiler
CC = gcc

# Compiler flags
CFLAGS = -Wall -O2 -s

# Libraries
LIBS = `allegro-config --libs`


#
# Targets
#

default: arcturus
 cp arcturus ..

install: arcturus
 cp arcturus ..

#
# Link executables
#

arcturus: $(OBJS)
 $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)

#
# Compile source files
#

.c.o:
 $(CC) $(CFLAGS) -c $*.c


#
# Clean up
#

clean:
 rm *.o
 rm arcturus


--
Tom Morton | DrAngband Homepage
http://www.yikesstation.freeserve.co.uk
A(2.8.3) WFD "Moretom" HEM L:50 A++ R++ Sp+ w:Glaive of Pain
A(O/Z/Dr) D H+ D- ?c f PV+ s- h d+ P++ M+
!C S I+ So B SQ- RQ++ V- F:v2.8.5 final


- Raw text -


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