I have these following packages defined in my preamble and once the file is ran, it creates an error of the following saying there is a clash within the package options. Packages are below:
\documentclass[addpoints,11pt]{exam}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{latexsym}
\usepackage{enumerate}
\usepackage{array}
\usepackage{amsthm}
\usepackage{cancel}
\usepackage{amsfonts}
\usepackage{tikz}
\usepackage{upgreek}
\usepackage{calligra}
\usepackage{graphicx,graphics}
\usepackage[normalem]{ulem}
\usepackage[all]{xy}
\usepackage[dvipsnames]{xcolor}
\begin{document}
.......
\end{document}

Is there a way to prevent and what is the actual root of the problem to persist?
tikzis the package which already loadsxcolor– Aug 14 '11 at 06:54\PassOptionsToPackage{dvipsnames}{xcolor}as I alread wrote in my answer – Aug 14 '11 at 07:14\documentclass{...}, is that like in a sense making a global variable? – night owl Aug 14 '11 at 07:35\documentclassin a teX file. – night owl Aug 14 '11 at 08:20