Message-ID: <3977519D.1545FF4C@puckbell.net> From: Tasci Synx X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Linking Object Libraries Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 Date: Thu, 20 Jul 2000 12:23:09 -0700 NNTP-Posting-Host: 63.197.122.98 X-Complaints-To: abuse AT pacbell DOT net X-Trace: news.pacbell.net 964120561 63.197.122.98 (Thu, 20 Jul 2000 12:16:01 PDT) NNTP-Posting-Date: Thu, 20 Jul 2000 12:16:01 PDT Organization: SBC Internet Services To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I was wondering if anyone might be able to help me. I compiled a number of object files, then used the 'ar' utility to make a single file out of them called libgame.a. I tried to include this with the my object files in another project, but received an error every time I tried to call a function in the library. It was as though there was no library in the first place. The following command, gpp -Lc:\windows\desktop\tcl\code\library -lgame -g mufcode.o mufcoder.o -o muf.exe only produced one type of linker error: Undefined reference to '' whenever I invoked a function from the library. Does anyone who knows how to make libraries know what I'm doing wrong here? I used 'ar cr libgame.a ' to create the library. I am sure that it's finding the library file, just not using the functions within. Tasci -- To send me an email, just replace the @ and the . -----wassdamo at pacbell dot net