I am trying to compiler several libraries with mwcceppc compiler and some with gcc. Then link them together with mwldeppc .
I ran into a problem that mwldeppc cannot recognize gcc debug data.
mwldeppc.exe: Invalid abbreviation code : 266l in section .debug_info of file
If I compile with gcc without including debug data linking is OK.
Is there any way to get support for gcc debug data?
Hello Juha Laukkanen,
CodeWarrior supports building project with Freescale Classic Toolchain or GCC Toolchain, please only select one for your project, don't mix them together.
I suggest you rebuild the library with mwcceppc compiler, and "EWL Libraries" are recommended to use, please refer to the section "22.3.3 How to Rebuild the EWL Libraries" in the attached document to rebuild your required library.
OK yes I know I can build everything either with GCC Toolchain or MW Toolchain.
I was just wondering if it possible to mix them. Seems not really. Overcoming that linker restriction regarding debug data means lots of effort and work.
However you suggest preferring MW Toolchain rather than GCC Toolchain? I have understood that Freescale is going to mainly support GCC in the future so that it is unlikely that MW Toolchain gets C++11/14 and C11 support at all (now it only has C++03 and C99 support). Can you please explain why MW Toolchain should be preferred?