|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Linker Error
I get the following error whenever i try to compile FRCcode with any variables declared in user_routines.h (in this case, "int bob;"):
MPLINK 3.40, Linker Copyright (c) 2003 Microchip Technology Inc. Error - symbol 'bob' has multiple definitions. Errors : 1 I'm positive i don't have multiple definitions. It appears that user_routines.h is being included several times. i understand repeated #defines would be protected by the Code:
#ifndef __user_program_h_ #define __user_program_h_ .... #endif but how do i protect real code (not #define's) from being repeatedly inserted? The program compiles fine with the variables in user_routines.c, i'd just prefer these global constants to be in the header for convenience. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error in Visual C++ | Ashley Weed | Programming | 15 | 06-05-2004 14:53 |
| Strange 16 bit MS-DOS subsystem error | Crazy_Ed | Programming | 6 | 18-03-2004 14:31 |
| Error message in MPLAB IDE | dddriveman | Programming | 11 | 18-03-2004 06:34 |
| strange error | Anthony Kesich | Programming | 2 | 25-02-2004 18:55 |
| EMERGENCY! EPROM FULL error?!? | CHSguard72 | Programming | 2 | 05-03-2003 20:51 |