sample.
Glossary
sample an example 1 ??
Too late to define an entry with the docdef=restricted setting. (Defini-tions must come before \printglossary.)
New entry just defined: sample2. This will cause an error (or warning with undefaction=warn) in \printglossaries. This missing entry will be marked with two question marks ?? in the glossary.