From: Alexander Borghgraef Newsgroups: comp.os.msdos.djgpp Subject: Newbie question: Linking in RHide Date: Tue, 20 May 1997 09:04:21 +0200 Organization: Universiteit Gent Lines: 25 Message-ID: <33814CF5.F50@eduserv2.rug.ac.be> NNTP-Posting-Host: hades167.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am about to finish my first ever DJGPP-project (my first C++ project whatsoever), and I've fixed all compile bugs. The program consists out of several *.cc and *.h files, which I've put in a project file using RHide. It also uses Allegro routines and that's where my problem kicks in. I know that command line compilation of a single file can be done by gxx file.cc -o file.exe -lalleg after having put allegro.h in the INCLUDE directory and liballeg.a in the LIB directory. What I don't know is how to do this for several files, or how to do this in RHide. I've tried "Build All" but it produced the error messages "undefined reference" for every allegro routine, (and some of the other routines I defined in one of the *.h files, but that's probably another problem) and before you ask,yes, every file that contains allegro routines also contains the line #include Hope someone can help me out on this, I would greatly appreciate it. A.B. -- Darn right! No government should be allowed to keep a tax-paying, god fearing citizen from strapping a couple hundred thousand Estes rocket motors to a kerosene tanker with the hope she'll make orbit. If it lands on some stupid, third world country, well it serves them right for not investing in an ABM system! - Someone in sci.space.policy -