delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/08/01:31:13

Message-ID: <3B99AC68.35DDFD8E@hotmail.nospam.com>
From: Ian Rees <ianr44 AT hotmail DOT nospam DOT com>
X-Mailer: Mozilla 4.7 [en] (Win98; I)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Split source file
Lines: 27
Date: Sat, 08 Sep 2001 01:28:08 -0400
NNTP-Posting-Host: 63.24.223.202
X-Trace: eagle.america.net 999926853 63.24.223.202 (Sat, 08 Sep 2001 01:27:33 EDT)
NNTP-Posting-Date: Sat, 08 Sep 2001 01:27:33 EDT
Organization: 24hoursupport.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,
   I am sure this is a rather dumb question, but I can't figure it out.
I am writing a program which uses allegro, and the source is getting
very long.  It is inconvenient to look through all the lines of code to
find what I am looking for, and search is a pain.  I would like to make
two separate files, like main.c and gui.c, and be able to just pull all
the gui functions out of my current main.c and put them in a file called
gui.c and then compile to one .exe file.  I have tried doing this and
using the command:

gcc -Wall -o prog.exe source.c gui.c -lalleg

but no exe is created and it spits out many warnings like:

gui.c:5: warning: implicit declaration of function '....'
and
gui.c:18: '...' undeclared (first use in this function)

all of the ...s above are either allegro functions or constants.  Any
help would be greatly appreciated.

                            -Ian-

PS.
   I still haven't figured out the mouse speed issue with VBE/AF in
allegro, any pointers? (bad pun, I know)

- Raw text -


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