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
Best Answer
not sure if you where able to fix this, but I ran into the same problem and noticed the following:
Hopefully some of this comments help you.