From: "psn" Newsgroups: comp.os.msdos.djgpp Subject: using RHIDE to build a an EXE with user librarys Date: Wed, 20 Sep 2000 19:30:51 +0100 Organization: BT Internet Lines: 43 Message-ID: <8qavs4$6ak$1@plutonium.btinternet.com> NNTP-Posting-Host: host62-7-68-50.btinternet.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Firstly, I would like to apologise if I am being a little stupid, but this problem has completely stumped me! I am trying to build a .EXE file in RHIDE - but I just cannot make the darn thing link. This is what I have got... program.gpr - a project file containing a few source files including one with a the all important main() function. libwins.grp - a project file containing source files which contain some related user library functions. I have built this and produced libwins.a libstuff.grp - as above and built to produce libstuff.a The source files for each library are in separate folders along with their associated project file. The libxxx.a files are in \lib. I get no errors when I build the libraries -so far, so good! I have included alleg, wins and stuff in the include list for program. I have set up all the directories for source, objects and libraries in RHIDE. When I click on build all, I get linker errors due to unresolved references. It just will not have it. I know I must be doing something daft but I just can't put my finger on it. I have read the FAQ's and the RHIDE help text with no luck. The files in program.gpr obviously include calls to functions in both libwins.a and libstuff.a. There are also some allegro function calls. The user libraries do rely on each others existence and also contain calls to allegro. This is a chicken and egg scenario which I had expected to be solved by multiple passes by the linker, If anyone has any ideas please let me know - It's a pretty fundamental problem so the solution must be simple. Thanks Tim