> The original problem Olin was that I was using the DOS compiler and > linker from the command line using a batch file. It all worked fine > until I added a second file to the project. When I added the second > file to > the linker command line, it would not link and complained about the > command line being too long. I solved this by changing to the directory > that contained the object files and linked from there. The issue with > four files was that this would once again extend the command line > and the linker would fall over again. It's better to put the file names in the linker control file anyway. I use a wrapper for MPLINK called LINKPIC. It is part of the PIC development environment at http://www.embedinc.com/pic that you can download for free. > I have removed the DOS files and now call mpasmwin, _mplink, mp2cod > and mp2hex files directly. You should only run MPASMWIN and MPLINK directly. Let the linker run whatever else it needs itself. > If I call the mplink file, the linking stop > at the > point where it calls mp2cod and just prints out the command line options > for mp2cod. The whole thing seems to work now and I get all the files > I need. You are saying it stops before it's done, then saying the whole thing seems to work. OK I guess if it all works, but it doesn't sound right. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics