From: "Deathifier" Newsgroups: comp.os.msdos.djgpp Subject: DJGPP Isn't linking extra libraries. Date: Fri, 21 Aug 1998 21:05:14 +1000 Organization: The Internet Group Ltd Lines: 59 Message-ID: <6rjka3$nbi$1@toto.tig.com.au> NNTP-Posting-Host: p25-max1.syd.ihug.com.au To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello, I've been trying to solve this problem for a while but it's still got me, here's my problem. I've been trying to learn how to put graphics inside my game, all I want to do is draw a couple of boxes on a blank screen. The problem is I've downloaded the MGL graphics library from Scitech, installed it, set up the .env file and my autoexec.bat so that it reads all the directories to include the new libraries. That all works, except when I try to compile, it gets to linking and stops with two erros: gmain.c(14) Error: undefined reference to `ZTimerInit' gmain.c(15) Error: undefined reference to `CPU_getProcessorSpeed' This is my small code sample (My entire program) just to see if it includes the libraries, and to learn with: /* Learning about graphics and settings */ #include #include #include /* Predefined Variables */ float cpuspeed = 0; /*Program Start*/ int main() { ZTimerInit(); cpuspeed = CPU_getProcessorSpeed(); printf("Your CPU Speed is: %f", cpuspeed); } /*End*/ Now the paths are set right, I've checked and rechecked (And even moved the main C library out of the main directory and into the other one, and it still worked) all my settings, configurations and have tried the include statements for RHIDE V1.4 and all I get when trying to include them is "File not found" errors. The files are there, in two spots, and are .a files like the rest, they have been compiled specifically for DJGPP V2.01 but still they won't work. What I want to know is if I am missing some little thing somewhere that could be upsetting the balance of things. I've spent a while learning some of the basics of C programming and before I go on I want graphics on the screen, and this is the first step to getting graphics on (The function calls for graphics would take more space for now). Any help would be appreciated and if you have a homepage or something I'd be happy to put a link from my webpage at http://homepages.tig.com.au/~storey/ to your page in return for your help. Thanks in advance, David Storey