If -ptipath is not used, the compiler looks for template files in -Ipathname.
Use -Ipathname instead of -ptipath.