The comments were the first in which Mr. Gates had explicitly linked European antipathy to American policy in Iraq with the reason large segments of the public here do not support the NATO operation in Afghanistan .