Are you compiling with a make file provided by PTC? Or is this your own code and you copied an existing make file?
I believe that you don't have the path to the example applications quite right. I think ERROR_CHECK is defined in some obscure header/source that wasn't compiled into an obj which in turn the linker needs but can't find. I don't have WF 5 so i can't verify what you're trying to compile.