# Unable to fix the figure attachment error [duplicate]

I am facing a problem in attaching a figure. I get the following error:

Latex error: Cannot determine size of graphic in fig.pdf

\begin{figure}
\centering
\includegraphics[width=0.8\textwidth,]{fig.pdf}
\caption{Coop. Network with Relays}
\end{figure}

-
Are you using LaTeX or PDFLaTeX? Basically .PDF extensions will support only PDFLATEX. –  Balaji Feb 18 '13 at 12:37
–  Lionel MANSUY Feb 18 '13 at 12:45
i m using pdflatex, and i have tried it for .eps, .png .jpg , but i don't know how to fix it –  Muhammad Sajjad Khan Feb 19 '13 at 2:12