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. I have removed the DOS files and now call mpasmwin, _mplink, mp2cod and mp2hex files directly. 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. Regards Gavin Jackson, R&D Software Engineer, Auckland, New Zealand > -----Original Message----- > From: Olin Lathrop [SMTP:olin_piclist@EMBEDINC.COM] > Sent: Wednesday, March 05, 2003 11:33 AM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: MPLINKD issues with multiple object files > > > When I use MPLINK from the command line I get the following error: > > > > MPLINK 3.10, Linker > > Copyright (c) 2002 Microchip Technology Inc. > > Errors : 0 > > > > MP2COD 3.10, COFF to COD File Converter > > Copyright (c) 2002 Microchip Technology Inc. > > Usage: mp2cod [-n, /n ] [-d, /d] [-q, /q] > > What error? I don't see an error. > > > and that's where the whole thing stops. I have ended up doing what > > you suggested Olin and changed to the directory that contains the > > object files and linked them from there, but what happens when my > > project has four files to link? > > What's the issue with 4 files? I've linked many more than that without > any problems. Again, you haven't said what the problem is. What exactly > is the linker not doing that you think it should? > > > ***************************************************************** > 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 -- 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