Hello,
I cannot print hex values using %x.
I am using Codewarrior 7.1 build 14
I found a thread about this posted by CrasyCat. Where CrasyCat says "Open the project" and "Activate target" can someone please explain how to do this?
Do I close my project and open the mcp that is being referenced? I tried opening a few of the mcps in that directory and hitting alt-F7 but none of them give me the "C/C++ Preprocessor" panel
I am assuming the mcp file is a new name now. But I have no idea what Activate target "2i ColdFire RegABI" means to do. The rest of the instructions I understand.
Here are the instructions that were posted by CrasyCat:
I was hoping that I just needed to open my project and go to the"C/C++ Preprocessor" panel and
add following line in there:
But that didn't work...
Please help!
Renee
Solved! Go to Solution.
This is what I did to get %x to work in printf - although I don't think this is the way it was intended to be done:
I added printf_tiny_IO.c to my project
In my project I hit alt-f7 and added the following:
#define LIBDEF_PRINTF_ALLOW_HEXINT 1
Then %x worked in printf.
Renee
This is what I did to get %x to work in printf - although I don't think this is the way it was intended to be done:
I added printf_tiny_IO.c to my project
In my project I hit alt-f7 and added the following:
#define LIBDEF_PRINTF_ALLOW_HEXINT 1
Then %x worked in printf.
Renee