Hey all, I'm getting an L1818 error, "Symbol duplica...

Discussion created by ROB LUND on Apr 15, 2008
Latest reply on Apr 16, 2008 by bigmac
Hey all, I'm getting an L1818 error, "Symbol duplicated in first file and second file."  My project setup is this:

#include "main.h"

#include "main.h"

const Byte table1[]=
  0x01   // e.g.

It made sense to me to put this table in my header, since they aren't variables.  They're empircal hex values for a lookup table.  Nevertheless, it's actually only main.c that calls the function which uses this table.

I have found that if I move that table out of main.h and into main.c, the error goes away.  But again, organizationally, it makes most sense to me to stuff it into the header with all the other defines and junk.

I suspect that this thread is related to my problem, but not sure.  Any suggestions?