I am getting the following linker error when i try to make a command line build(using makefile) for coldfire mcf52211 using codewarrior v7.2:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\ColdFire_Tools\Command_Line_Tools\mwldmcf.exe
-processor MCF521X -msgstyle gcc -lavender model="ewl",print="int",scan="int",io="buffered" -main "__startup"
-force_active '__vect','__cfm' -sreclength 32 -breclength 252 -sreceol unix -keeplocal off -nodeadstrip -listing
-show all -warn on -g lcf\MCF52211_INTERNAL_FLASH.lcf
... list of object files ...
-o bin\MCF52211_INTERNAL_FLASH.elf
mwldmcf.exe: warning: Specified file 'v2\libm.a' not found
mwldmcf.exe: warning: Specified file 'v2\libc.a' not found
mwldmcf.exe: warning: Specified file 'v2\librt.a' not found
mwldmcf.exe: warning: Specified file 'fp_coldfire.a' not found
mwldmcf.exe: unable to find EWL lib:
mwldmcf.exe: v2\libm.a
I set the following environment variables but for some reason linker is not able to find the library path:
CWFolder : 'C:\Program Files\Freescale\CodeWarrior\CodeWarrior for ColdFire V7.2'
CWINSTALL : 'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2'
LM_LICENSE_FILE: %CWFolder%\license.dat
MWCIncludes : %CWFolder%\ColdFire_Support\ewl\EWL_C\Include; %CWFolder%\ColdFire_Support\ewl\EWL_C\Include\sys
MWLibraries : %CWFolder%\ColdFire_Support\ewl\lib
Any help to resolve this issue?
I tried following two sets of environment variables but nothing worked(not sure which one mwldmcf likes):
Set1:
-----
CWFolder:
'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2'
CWINSTALL:
'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2'
LM_LICENSE_FILE:
'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\license.dat'
MWCIncludes:
'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\EWL_C\include'; 'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\EWL_C\include\sys'
MWLibraries:
'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\lib'
Set2:
-----
CWFolder:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"
CWINSTALL:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"
LM_LICENSE_FILE:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\license.dat
MWCIncludes:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\ColdFire_Support\ewl\EWL_C\include'; C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\ColdFire_Support\ewl\EWL_C\include\sys
MWLibraries:
C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\ColdFire_Support\ewl\lib
Please help me to resolve this issue.
Hello
Did you try setting MWLibraries to
"C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\lib\v2"; "C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2\ColdFire_Support\ewl\lib"
and set MWLibraryFiles to libc.a;librt.a;libm.a;fp_coldfire.a
Additionally for some reason you have some times two backslashes and sometimes just one in the path specification. Not sure how this one is build up, and why this is so...
CrasyCat