Michael Shiloh wrote: > > I'm trying to set up to work in a Linux environment. It seems the best > combination is the c2c compiler and gpasm, but I'm having some trouble. > > I guess my first question is, in a Linux environment, is this in fact > the way to go? If not, what? If so, where are the best places to get > these two? > > I'm trying to compile one of the examples that came with c2c, ex1.c. > I compile like so: > > c2c ex1.c > > this works and produces an output file called ex1.asm which contains the > line: > > include "p16c84.inc" > > This file was not included with my c2c distribution, so I tried the version > from mplab but when I assembled it like so: > > gpasm ex1.asm > > I got all kinds of errors. > > Before I waste much more time on this, is this the best way to go? Michael, I can't answer whether or not this the best way to go, but I can tell you how to get the include file. First of all, gpasm can not legally redistribute the microchip include files that come with mplab. However, as a user you may download mplab and get the files yourself. If this is too much of a pain in the ass, then you can download gpsim (the gnupic simulator) and use the very similar include file "p16c84.inc". If you use the microchip include files, then you'll have to be careful with case sensitivity. There's the case sensitivity switch '-c' that will make it work. Scott