From: Tom Newsgroups: comp.os.msdos.djgpp Subject: Re: Compiling Problem Date: Mon, 5 Jan 1998 12:08:58 +0000 Organization: None whatsoever Distribution: world Message-ID: <97bOeVAa1Ms0Iw0h@sunholme.demon.co.uk> References: <34AF003A DOT 396F AT cs DOT huji DOT ac DOT il> NNTP-Posting-Host: sunholme.demon.co.uk MIME-Version: 1.0 Lines: 43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <34AF003A DOT 396F AT cs DOT huji DOT ac DOT il>, Ofer Corshid writes >Hye, > >Anyone who can, please answer this: > >While compiling, the compilers complains: >c:/misc/djgpp/tmp\cccaaaaa: Assembler Messages: >c:/misc/djgpp/tmp\cccaaaaa:276: Error: Rest of line ignored. First >ignored character is ':'. >c:/misc/djgpp/tmp\cccaaaaa:280: Error: Rest of line ignored. First >ignored character is ':'. >c:/misc/djgpp/tmp\cccaaaaa:284: Error: Rest of line ignored. First >ignored character is ':'. >make.exe: *** [cpufuncs.o] Error 1 ^^^^^^^^ Are you using assembler? (cpufuncs?) If so, this probably means there are errors in it. Compilation with djgpp takes place in two stages: the compiler (cc1 or cc1plus) takes in C/C++ (suitably preprocessed) and outputs assembly suitable for gas, and gas takes in assembly suitable for gas and outputs an object file. The gas assembly is placed in your temporary directory (here c:\misc\djgpp\tmp) with a temporary filename (here cccaaaaa) and deleted when the programs terminate. Unfortunately, if there are no errors in the C file but errors in the assembly file (which wil never happen in the normal course of things, but may happen if you write your own assembler) the temporary assembly file will be deleted without you being able to examine it. To find the error, you will have to compile the program as normal with gcc, but using the -S (generate assembly) switch. Then check out the line numbers referenced above, and see what's going on. If you have any assembly experience it should be fairly straightforward. (Is there a command-line parameter to prohibit deletion of temporary files?) If the above is not the case, check your header files -- perhaps there is assembly there -- and finally consider the possibility that you have found a bug in djgpp... --Tom My real e-mail address is tom AT sunholme DOT demon DOT co DOT uk