Hi Craig,
the linker error I was getting was related to the CRT_HDR definition being commented out but appearing later in the code segment I had posted. Commenting out the segment as well solved the error, I should have explained this more clearly.
Thank you for your explanation on the LDF segment I posted. Everything is working now.
Kind regards,
Chris