# 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}

-

## marked as duplicate by lockstep, Claudio Fiandrino, mafp, zeroth, T. VerronFeb 18 '13 at 15:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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