{{ message }}

# Difficulty compiling minimal complete example#92

Closed
opened this issue Nov 3, 2015 · 3 comments
Closed

# Difficulty compiling minimal complete example#92

opened this issue Nov 3, 2015 · 3 comments

### nwhetsell commented Nov 3, 2015

 I just updated minted to version 2.1, and I’m encountering an issue when attempting to compile the minimal example in the manual: \documentclass{article} \usepackage{minted} \begin{document} \begin{minted}{c} int main() { printf("hello, world"); return 0; } \end{minted} \end{document} When I compile that by running (in Terminal, on OS X) pdflatex -shell-escape test.tex compilation fails with ! Undefined control sequence. \PYGZob {} l.2 ...G{n+nf}{main}\PYG{p}{()} \PYG{p}{\PYGZob{}}  I have a feeling I’ve done something bone-headed to produce this, but I’m at a loss. The text was updated successfully, but these errors were encountered:

### gpoore commented Nov 3, 2015

 Your example looks fine and works for me. If there is a directory _minted-test, you might delete that and try compiling again. Also, you might check that your Pygments version is recent. If it still doesn't work, you could try \usepackage[cache=false]{minted} to see if that makes any difference.

### nwhetsell commented Nov 3, 2015

 Deleting _minted-test fixed it, don’t know how I didn’t think to try that before. Thanks for your help!

closed this Nov 3, 2015

### tsdh commented Dec 5, 2015

 I had that right now with \PYGZgt being the undefined control sequence. Deleting the cache dir and recompiling did the trick, too.

mentioned this issue Sep 22, 2017
mentioned this issue Jun 14, 2020