I have a project in CW10 and I had it working the last time I had CW10 running, as in it built clean and debugged successfully. It's been a couple weeks and I just opened the project back up to continue working on it, and now when I try to build it's spitting out the following errors:
Cannot open file ./Sources/ProcessorExpert.obj
make: *** [SLP_2.abs] Error 1
Symbol 23 - error duplicated in ProcessorExpert.obj and Events.obj
The only changes that I've made since last opening the project was some basic additions to the source code. I didn't do anything with processor expert config, project config, beans, etc. The files ProcessorExpert.obj and Events.obj are listed in the project file tree under MC9S08GB60/Sources where they should be. Seems like one of those ghost issues where you get something working then let it sit for a while and then it's mysteriously broken when you come back to it...
I've had this problem before with other projects and I could never figure out whats going on. In the past I've had to recreate the entire project to be able to move forward.
Does anyone know the cause of the problem I'm seeing and how to resolve it?
Thanks!
已解决! 转到解答。
When adding this line to main.c and a newly created file s.c
> int defined_twice=2;
I get these errors in the problems view:
Cannot open file ./Sources/s.obj s08 line 0 C/C++ Problemmake: *** [s08.abs] Error 1 s08 line 0 C/C++ ProblemSymbol 14 - defined_twice duplicated in s.obj and main.obj s08 line 0 C/C++ Problem
The problems view sorts them by the description, which is a bit unfortunate as the last one actually caused the two other messages. Also the "Cannot open file" is a bit misleading, as it can open it, the linker just does not like the content.
Just added this to show that the error in the original report just is a variable or function name and not part of the message.
Daniel
I do appreciate the help but at this time I won't be able to post the whole project because of IP protection concerns.
Here's PART 1 (because of msg post char limits) of the console output after a clean+build right after opening CW:
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/Led.c'
' '
'Building file: ../Generated_Code/PE_Timer.c'
'Invoking: HCS08 Compiler'
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PE_Timer.args" -ObjN="Generated_Code/PE_Timer.obj" "../Generated_Code/PE_Timer.c"
../Generated_Code/PE_Timer.c
Command Line: '-ArgFile"Generated_Code/PE_Timer.args" -ObjN="Generated_Code/PE_Timer.obj" "../Generated_Code/PE_Timer.c"'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PE_Timer.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
Object file: Generated_Code/PE_Timer.obj, format ELF/DWARF 2.0
Code Size: 567
Global objects: 10
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PE_Timer.args" -ObjN="Generated_Code/PE_Timer.obj" "../Generated_Code/PE_Timer.c" -Lm="Generated_Code/PE_Timer.d" -LmCfg=xilmou
../Generated_Code/PE_Timer.c
Command Line: '-ArgFile"Generated_Code/PE_Timer.args" -ObjN="Generated_Code/PE_Timer.obj" "../Generated_Code/PE_Timer.c" -Lm="Generated_Code/PE_Timer.d" -LmCfg=xilmou'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PE_Timer.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Generated_Code/PE_Timer.d'
Object file: Generated_Code/PE_Timer.obj, format ELF/DWARF 2.0
Code Size: 567
Global objects: 10
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/PE_Timer.c'
' '
'Building file: ../Generated_Code/PwrCtl.c'
'Invoking: HCS08 Compiler'
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PwrCtl.args" -ObjN="Generated_Code/PwrCtl.obj" "../Generated_Code/PwrCtl.c"
../Generated_Code/PwrCtl.c
Command Line: '-ArgFile"Generated_Code/PwrCtl.args" -ObjN="Generated_Code/PwrCtl.obj" "../Generated_Code/PwrCtl.c"'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PwrCtl.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
Object file: Generated_Code/PwrCtl.obj, format ELF/DWARF 2.0
Code Size: 13
Global objects: 2
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PwrCtl.args" -ObjN="Generated_Code/PwrCtl.obj" "../Generated_Code/PwrCtl.c" -Lm="Generated_Code/PwrCtl.d" -LmCfg=xilmou
../Generated_Code/PwrCtl.c
Command Line: '-ArgFile"Generated_Code/PwrCtl.args" -ObjN="Generated_Code/PwrCtl.obj" "../Generated_Code/PwrCtl.c" -Lm="Generated_Code/PwrCtl.d" -LmCfg=xilmou'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PwrCtl.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Generated_Code/PwrCtl.d'
Object file: Generated_Code/PwrCtl.obj, format ELF/DWARF 2.0
Code Size: 13
Global objects: 2
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/PwrCtl.c'
' '
'Building file: ../Generated_Code/PwrSwitchMonitor.c'
'Invoking: HCS08 Compiler'
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PwrSwitchMonitor.args" -ObjN="Generated_Code/PwrSwitchMonitor.obj" "../Generated_Code/PwrSwitchMonitor.c"
../Generated_Code/PwrSwitchMonitor.c
Command Line: '-ArgFile"Generated_Code/PwrSwitchMonitor.args" -ObjN="Generated_Code/PwrSwitchMonitor.obj" "../Generated_Code/PwrSwitchMonitor.c"'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PwrSwitchMonitor.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
Object file: Generated_Code/PwrSwitchMonitor.obj, format ELF/DWARF 2.0
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/PwrSwitchMonitor.args" -ObjN="Generated_Code/PwrSwitchMonitor.obj" "../Generated_Code/PwrSwitchMonitor.c" -Lm="Generated_Code/PwrSwitchMonitor.d" -LmCfg=xilmou
../Generated_Code/PwrSwitchMonitor.c
Command Line: '-ArgFile"Generated_Code/PwrSwitchMonitor.args" -ObjN="Generated_Code/PwrSwitchMonitor.obj" "../Generated_Code/PwrSwitchMonitor.c" -Lm="Generated_Code/PwrSwitchMonitor.d" -LmCfg=xilmou'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\PwrSwitchMonitor.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Generated_Code/PwrSwitchMonitor.d'
Object file: Generated_Code/PwrSwitchMonitor.obj, format ELF/DWARF 2.0
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/PwrSwitchMonitor.c'
' '
'Building file: ../Generated_Code/RS232.c'
'Invoking: HCS08 Compiler'
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/RS232.args" -ObjN="Generated_Code/RS232.obj" "../Generated_Code/RS232.c"
../Generated_Code/RS232.c
Command Line: '-ArgFile"Generated_Code/RS232.args" -ObjN="Generated_Code/RS232.obj" "../Generated_Code/RS232.c"'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\RS232.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\RS232.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Sources\Events.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\BRIDGE_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyCol_In.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyLed.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyRowStrobe.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_CTL.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_Light.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCDDATA.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Led.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Tmr100hz.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\USB.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_PROGn.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_RESETn.h"
Object file: Generated_Code/RS232.obj, format ELF/DWARF 2.0
Code Size: 548
Global objects: 29, Data Size (RAM): 135
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/RS232.args" -ObjN="Generated_Code/RS232.obj" "../Generated_Code/RS232.c" -Lm="Generated_Code/RS232.d" -LmCfg=xilmou
../Generated_Code/RS232.c
Command Line: '-ArgFile"Generated_Code/RS232.args" -ObjN="Generated_Code/RS232.obj" "../Generated_Code/RS232.c" -Lm="Generated_Code/RS232.d" -LmCfg=xilmou'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\RS232.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\RS232.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Sources\Events.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\BRIDGE_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyCol_In.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyLed.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyRowStrobe.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_CTL.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_Light.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCDDATA.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Led.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Tmr100hz.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\USB.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_PROGn.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_RESETn.h"
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Generated_Code/RS232.d'
Object file: Generated_Code/RS232.obj, format ELF/DWARF 2.0
Code Size: 548
Global objects: 29, Data Size (RAM): 135
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/RS232.c'
' '
'Building file: ../Generated_Code/Tmr100hz.c'
'Invoking: HCS08 Compiler'
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/Tmr100hz.args" -ObjN="Generated_Code/Tmr100hz.obj" "../Generated_Code/Tmr100hz.c"
../Generated_Code/Tmr100hz.c
Command Line: '-ArgFile"Generated_Code/Tmr100hz.args" -ObjN="Generated_Code/Tmr100hz.obj" "../Generated_Code/Tmr100hz.c"'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\Tmr100hz.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Sources\Events.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\BRIDGE_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyCol_In.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyLed.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyRowStrobe.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_CTL.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_Light.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCDDATA.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Led.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\RS232.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Tmr100hz.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\USB.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_PROGn.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_RESETn.h"
Object file: Generated_Code/Tmr100hz.obj, format ELF/DWARF 2.0
Code Size: 80
Global objects: 12, Data Size (RAM): 1
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
"C:\Freescale\CW MCU v10.0\eclipse\../MCU/prog/chc08" -ArgFile"Generated_Code/Tmr100hz.args" -ObjN="Generated_Code/Tmr100hz.obj" "../Generated_Code/Tmr100hz.c" -Lm="Generated_Code/Tmr100hz.d" -LmCfg=xilmou
../Generated_Code/Tmr100hz.c
Command Line: '-ArgFile"Generated_Code/Tmr100hz.args" -ObjN="Generated_Code/Tmr100hz.obj" "../Generated_Code/Tmr100hz.c" -Lm="Generated_Code/Tmr100hz.d" -LmCfg=xilmou'
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Project_Headers\../Generated_Code\Tmr100hz.c"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Sources\Events.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Types.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Error.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Const.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\IO_Map.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PE_Timer.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\BRIDGE_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Cpu.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyCol_In.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyLed.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\KeyRowStrobe.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_CTL.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_EN.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCD_Light.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\LCDDATA.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Led.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrCtl.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\PwrSwitchMonitor.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\RS232.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\Tmr100hz.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\USB.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_PROGn.h"
"C:/Users/Jake/CodeWarrior Workspace/SLP_2/Generated_Code\VINC_RESETn.h"
Option -Lm Update: Create new dependency file
Option -Lm: Adding make info to 'Generated_Code/Tmr100hz.d'
Object file: Generated_Code/Tmr100hz.obj, format ELF/DWARF 2.0
Code Size: 80
Global objects: 12, Data Size (RAM): 1
HC08 Compiler: *** 0 error(s), 0 warning(s), 0 information message(s) ***
HC08 Compiler: *** Processing ok ***
'Finished building: ../Generated_Code/Tmr100hz.c'
' '
Since the ProcessorExpert.obj and Events.obj files are present in the project but the compiler is complaining that it can't read them, I'm guessing they got corrupted somewhere along the way. If I delete the files from the project and then run a "generate processor expert code" command would that regenerate the files? If not how would I regenerate the files?
Thanks
They should be deleted when you do a clean, are they not regenerated? I would expect that to happen. Check the file dates for example.
The logs did not show those files to be generated, but apears to be a partial log. For a full one you might have to increase the size of the console.
I don't think the obj files are corrupted.
I read
ERROR L1818: Symbol 23 - error duplicated in ProcessorExpert.obj and Events.obj
to mean that there was a symbol called error defined in both ProcessorExpert.c and in Events.c.
I guess the error symbol is the 23'th in the ELF symbol table in ProcessorExpert.obj, but that's just a unimportant detail.
The second error message
ERROR L1301: Cannot open file ./Sources/ProcessorExpert.obj
just means something failed whiile looking at the content of ProcessorExpert.obj, it does not mean that object file got corrupted.
So I would look through the source code and check if there is any symbol called error defined in those files (or in any header included by them).
Daniel
When adding this line to main.c and a newly created file s.c
> int defined_twice=2;
I get these errors in the problems view:
Cannot open file ./Sources/s.obj s08 line 0 C/C++ Problemmake: *** [s08.abs] Error 1 s08 line 0 C/C++ ProblemSymbol 14 - defined_twice duplicated in s.obj and main.obj s08 line 0 C/C++ Problem
The problems view sorts them by the description, which is a bit unfortunate as the last one actually caused the two other messages. Also the "Cannot open file" is a bit misleading, as it can open it, the linker just does not like the content.
Just added this to show that the error in the original report just is a variable or function name and not part of the message.
Daniel
Yep you're right, I did have a variable named "error" that was declared in both ProcessorExpert.c and Events.c. That's obviously a bad variable name because I thought it was a part of the console output like you said. I corrected the declarations and now the project builds correctly.
Thank you for all the help!
-Jake