I use pgf-umlcd manual as manual to create uml diagrum. But, when I use \unidirectionalAssociation command there occurs a problem.
My code here -
\documentclass{article}
\usepackage{pgf-umlcd}
\usepackage[a4paper,textwidth=8in]{geometry}
\begin{document}
\begin{tikzpicture}
\begin{class}{VocabularyObserver}{-3, -6}
\attribute{\# vocabulary : Vocabulary}
\operation{\# update(word : String) : void}
\end{class}
\begin{class}[text width = 12 cm]{Vocabulary}{-3,-10}
\attribute{- vocabularyObservers : List<VocabularyObserver>}
\attribute{+ MAXWORD : int}
\attribute{+ wordCounter : int}
\attribute{+ wordList : String[]}
\operation{+ addWord() : Boolean}
\operation{+ addObservers(vocabularyObserver : VocabularyObserver) : void}
\operation{- notifyAllObservers(word : String) : void}
\end{class}
\unidirectionalAssociation{uses}{VocabularyObserver}{0..*}{Vocabulary}
\end{tikzpicture}
\end{document}
compilation error is here -
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
! Package pgf Error: No shape named uses is known.
See the pgf package documentation for explanation.
Type H <return> for immediate help.
...
l.21 ...ses}{VocabularyObserver}{0..*}{Vocabulary}
?
How can I solve this problem?

tikzpicture? – TeXnician Aug 31 '17 at 04:24tikzpicture. Now the error is `geometry driver: auto-detecting geometry detected driver: pdftex! Package pgf Error: No shape named uses is known.
See the pgf package documentation for explanation. Type H for immediate help.
...
l.21 ...ses}{VocabularyObserver}{0..*}{Vocabulary}
?`
– alhelal Aug 31 '17 at 05:22