From: Igor2 Newsgroups: comp.os.msdos.djgpp Subject: compiling problems Date: Sun, 20 May 2001 07:25:15 +0200 Organization: Budapest University of Technology and Economics Lines: 50 Message-ID: NNTP-Posting-Host: ural2.hszk.bme.hu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: goliat.eik.bme.hu 990336323 9565 152.66.130.2 (20 May 2001 05:25:23 GMT) X-Complaints-To: abuse AT bme DOT hu NNTP-Posting-Date: 20 May 2001 05:25:23 GMT X-X-Sender: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all! First: i read trough abut 200kb of faqs already, and yes, i did read trough the newsgroup posting (the subjects and some posts) but havan't found the solution for my problem. I want to port my linux network-releated programs to windows, because my friend would like to run those on his windows. I first tried cygwin, but that lameness had only i686 libraries and i won't buy a new comp just because this ;) THan somone told me to try djgpp. So i downloaded, installed one, also downloaded the tools i needed. When compiling a c program, i get the following error: n:/.../tmp\cczMwzz7.s: Assembler messages: n:/.../tmp\cczMwzz7.s:12: Error: Rest of line ignored. First ignored character is `,'. I tried to compile it only to asm, than from asm to exe and found that the problem was this line: .p2align 4,,7 I fixed it, and now it (by deleting ",,7" from the end of the line) could really compile it, but it has another error now: n:/.../ld.exe:djgpp.djl:7: parse error collect2: ld returned 1 exit status Here's the 7th line of that djl: *(.gnu.linkonce.t*) So my questions: 1. how to make gcc to compile it for the first time so "as" would understand it without fixing lines in the asm code by hand? 2. how to make gcc to compile a simply asm file without having any errors with .djls? If versions of packages are needed to give answer, please tell me thax bye Igor2