\documentclass{article}

\usepackage{glossaries}

\include{gloss}

\begin{document}
\include{main}

\printglossaries

\end{document}
