With MC9S12NE64.h of HC12 V4.6, this works correctly, so I would guess that you use some other version, so which CW version do you use?
The actual error you see is generated if you include "MC9S12NE64.h" in your source file, but you do not have the corresponding MC9S12NE64.c added to your project, or more precisely if there is no matching definition for the variables declared in the header file. In that case I would expect a warning "default... created" before that error message.
Make sure you have the matching "MC9S12NE64.h/MC9S12NE64.c" and not a *.c file for another derivative. If in doubt create a new project with the wizard and check if it works in there. If not report the bug, if it does work, copy the settings :smileyhappy:.
BTW. In HC12 V4.6 the register is called PORTAD and not PORTAD0 as in your snippet.
Daniel