delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/05/16/07:15:11

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.107.135.214 with SMTP id r83mr20180403ioi.19.1463396432810;
Mon, 16 May 2016 04:00:32 -0700 (PDT)
X-Received: by 10.140.42.182 with SMTP id c51mr777570qga.7.1463396432743; Mon,
16 May 2016 04:00:32 -0700 (PDT)
Newsgroups: comp.os.msdos.djgpp
Date: Mon, 16 May 2016 04:00:32 -0700 (PDT)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=95.97.234.31; posting-account=FtL26AoAAAAOWnPCykSWF42mZjEap865
NNTP-Posting-Host: 95.97.234.31
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5a345c1-cfcb-4951-bc97-ae41166756ce@googlegroups.com>
Subject: Trying to link Allegro, but something is wrong. Any pointers appreciated
From: "mike AT letsdeliver DOT com [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Injection-Date: Mon, 16 May 2016 11:00:32 +0000
Bytes: 2872
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u4GBF26i029240
Reply-To: djgpp AT delorie DOT com

Hi there! A while back I started working on a small personal project, to make a short MS-DOS game, but I'm kind of stumped and could use some pointers from someone experienced.

My main OS is Mac OS X, so I've followed instructions I found online to get DJGPP working (and cross compiling for DOS) on OSX. Which works perfectly, I can generate .EXE files that run on the real thing, from the comfort of my work computer.

So now I'm trying to get Allegro, a game library, to work. I modified the Makefile of an older version (4.2.2, one that still targeted DOS), and managed to get it to compile the liballeg.a library without errors.

From there, the plan was to make a short "hello world" example using Allegro's functionality. Unfortunately, the linking step is failing.

My repo with all my files (including my copy of Allegro) is here: https://github.com/msikma/allegro-dos-test

Basically, when I run make, it seems to be linking Allegro twice. I get about 18 thousand error messages complaining about multiple definitions. This has me completely stumped. My makefile is here: https://github.com/msikma/allegro-dos-test/blob/be760a4f6cf1a41755813d5d55e15620cf16a12f/Makefile - this assumes that the user first goes into the vendor/allegro-4.2.2-djgpp-xc/ directory to run "xmake.sh lib", which compiles Allegro and generates the liballeg.a file.

Here's a log of make: https://gist.githubusercontent.com/msikma/cb28624117475e24d0e6e0594775ae73/raw/ea76fd4689375fd6169ad6c79f72ed13ce03145b/compile.txt

And the C file I'm trying to compile: https://github.com/msikma/allegro-dos-test/blob/be760a4f6cf1a41755813d5d55e15620cf16a12f/src/main.c

Any help that you could give is greatly appreciated :)
Michiel Sikma

- Raw text -


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