> Hi all. I have some assembler code that was written on a Linux machine > for gpasm. I'm now trying to compile it using MPLAB. Problem is, I open > the main file, and try to build it, and I get this: > Error[125] C:\PROGRA~1\MPLAB\PROJECTS\UNILINK\UNILINK.ASM 2 : Illegal > condition (EOF encountered before END or conditional end directive) > Note that this error occurs on line two of the file! At that point > everything is still in comments. I'm guessing this is a problem with > cr/lf or something to that effect. Any ideas on how to fix this short of > retyping the entire program? I bet you're right. Unix stores LF to indicate new line, whereas Windows stores CR LF. I write all my host software on top of a portability layer. As part of that, the text file reading routines try to be tolerant of both methods. All my top level programs can therefore read either file type, but they produce the file type native to whatever system they are running on (built for). My COPYA program copies ASCII files while allowing a few operations on them (converting tabs to spaces with arbitrary tab stops, etc). Among other things, the Windows version will automatically write the output file in CR LF format. The COPYA program is included in the "PIC development tools" download at http://www.embedinc.com/pic/dload.htm. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body