|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
|||
|
|||
|
Re: EasyC Wish List
Quote:
I'm still having problems. I might not fully understand what you are suggesting. I created a .h file of: #ifndef LOOKUP_H int mytable[4] = {1,2,3,4}; #endif #ifdef LOOKUP_H extern int mytable[]; #endif #define LOOKUP_H and did a file inclusion. The problem I've run across is that it must be compiled multiple times into the project. The project won't link, I get multiple defines at link time. If I put an error into the include file I get seven syntax errors. I don't know if that means it is compiled into 7 different modules or not. I could make the table static and that does link cleanly, but that means mytable[] is replicated multiple times in the system. Our real lookup table could be a couple kbytes in size, having this replicated in the system a bunch of times might not be a good thing. Looking for additional guidance. Thanks, DCBrown |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stocking up on parts *wish list | Greg Needel | Technical Discussion | 3 | 13-12-2006 21:28 |
| Dean's Holiday Wish List | DUCKIE | Dean Kamen's Inventions | 5 | 06-12-2006 22:59 |
| 2006 KOP Wish List | Andrew Blair | Kit & Additional Hardware | 33 | 19-05-2006 17:08 |
| FIRST Wish List | Justin Montois | FRC Game Design | 29 | 11-05-2005 15:48 |
| New Regional Wish List | Anne Shade | General Forum | 61 | 28-04-2003 21:48 |