The message "Package tikz Error: Sorry, the system call 'pdflatex -hell-escape -halt-on-e" appears when I compile with pdflatex and also when I compile with pdflatex-shell-escape.
If I remove \ tikzexternalize from the preamble it compiles correctly, but where I know it must be used if one wishes to include tikz images in other text files. Which function has exactly \ tikzexternalize because this case does not need to be used.
PS: taken from How to properly include tikz pictures in other tex files?
Main file
\documentclass{book}
\usepackage{pgf}
\usepackage{tikz}
\usetikzlibrary{shapes,external}
\tikzexternalize
\usepackage{lipsum}
\tikzset{naming/.style={align=center,font=\footnotesize}}
\tikzset{area/.style = {draw, shape = regular polygon, regular polygon sides = 10, thick, minimum width = 5cm}}
\begin{document}
\lipsum[1]
\input{tikzcode}
\lipsum[2]
\end{document}
Simplified file (tikzcode)
\begin{figure}[htb]
\centering
\begin{tikzpicture}[font=\footnotesize]
\node [area] at (0,0) (cell1) {};
\end{tikzpicture}
\caption{test}
\label{fig:test}
\end{figure}
Edited:
Correct has a space after pdflatex (see image 1) the configuration is for TeXstudio in MikTex.
In the image 2 the error appears but it produces the document.
Edited 2
Here are the two images compiled with pdflatex -shell-escape
pdflatex -synctex=1 -interaction=nonstopmode -shell-escape
, and there is no error on my machine. Of course, I do not question that you get an error, but I cannot reproduce it.ESCAPE: \the\pdfshellescape
to your document (and comment the picture), compile with your --shell-escape call and tell us what you get as output.