From: "Al Morgan" Newsgroups: comp.os.msdos.djgpp Subject: Re: Error in this? Please reply. Date: Tue, 17 Aug 1999 22:05:07 -0700 Organization: Posted via Supernews, http://www.supernews.com Lines: 122 Message-ID: References: <37B9F16F DOT 8605AC4B AT sympatico DOT ca> <37B9F6E8 DOT C9F54C35 AT sympatico DOT ca> <37B9FA9B DOT 76AA46F5 AT sympatico DOT ca> X-Complaints-To: newsabuse AT supernews DOT com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com It looks like the error is not that DJGPP cannot find ld.exe, but that ld.exe cannot find the 'ck' library. Are you using an IDE? If you are, I won't be able to help much, but if you are using the command line compiler, then post the commands you use with it, maybe I can help. websurfr wrote in message news:37B9FA9B DOT 76AA46F5 AT sympatico DOT ca... > Hi, it's me again. Just have one question for you. I used your tip and fix my code > problem but now, I get the following error: > > c:/djgpp/bin/ld.exe: cannot open -lck: No such file or directory (ENOENT) > > Hmmm, funny thing is, I have ld.exe in the c:\djgpp\bin directory??? > > Websurfr > > websurfr wrote: > > > ah ah DOH! thanks a bunch. > > > > Websurfr > > > > Al Morgan wrote: > > > > > Your line > > > Fill_Screen_Z(8) > > > doesn't have a semicolon > > > should be Fill_Screen_Z(8); > > > > > > As for that warning, I don't don't much about C (as opposed to C++), but C > > > doesn't seem to like void function returns, or at least with main. If you > > > meant to compile with C++ (I had this problem when I first got djgpp), name > > > your files .cpp instead of .c, and compile with gxx. > > > > > > websurfr wrote in message > > > news:37B9F16F DOT 8605AC4B AT sympatico DOT ca... > > > > Hello everybody, I'm running DJGPP v.2 with a bunch of other files and > > > > the following code gives the following error: > > > > > > > > C:\c\modez.c: In function 'main': > > > > C:\c\modez.c:36: parse error before `for' > > > > C:\c\modez.c:36: parse error before `)' > > > > C:\c\modez.c:37: parse error before `)' > > > > C:\c\modez.c:21: warning: return type of `main' is not `int' > > > > > > > > > > > > -------------------------------------------------------------------------- > > > ----------- > > > > > > > > // MODEZ.C - A demo of mode Z (320x400x256) > > > > > > > > // I N C L U D E S > > > > ///////////////////////////////////////////////////////////////////////// > > > > > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > #include > > > > > > > > #include > > > > > > > > // MAIN > > > > > > > //////////////////////////////////////////////////////////////////////////// > > > //////// > > > > > > > > > > > > void main(int argc, char **argv) > > > > { > > > > int index, // loop variables > > > > x, y, > > > > color; // holds the current color > > > > > > > > // set the graphics mode to mode Z 320x400x256 > > > > > > > > Set_Mode_Z(); > > > > > > > > // fill the screen with dark grey > > > > > > > > Fill_Screen_Z(8) > > > > > > > > // plot 1000 pixels in each of the colors > > > > > > > > for (color=1; color<256; color++) > > > > for (index=0; index<1000; index++) > > > > Write_Pixel_Z(rand()%320,rand()%400,color); > > > > > > > > // wipe screen > > > > > > > > for (index=320; index>=0; index--) > > > > for (y=0; y<400; y++) > > > > Write_Pixel_Z(index,y,0); > > > > > > > > // restore the video system to text > > > > > > > > Set_Graphics_Mode(TEXT_MODE); > > > > > > > > } // end main > > > > > > > > > > > > > > > > > > > > P.S Thanks in advance. > > > > >