If you want to use tkz-euclide instead of tkz-2d, you need TikZ 2.10 installed. Also, make sure you remove the tkz-2d package then update the filename database, or you may encounter problems with conflicting tkz-base.sty files. Using tkz-euclide, the code looks like this:
Code: Select all
\documentclass{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\coordinate[label=below left:$A$] (A) at (0,0);
\coordinate[label=below right:$B$] (B) at (10,0);
\coordinate[label=above:$C$] (C) at (1,3);
\coordinate[label=below:$D$] (D) at (1,0);
\draw (A) -- (C) -- (B) -- cycle;
\draw (C) -- (D) node[right,midway] {$m$};
\draw[latex-latex,shift={(0,-0.6)}] (1,0) -- (10,0) node[below,midway] {$a$ units};
\draw[latex-latex,shift={(0,-1.2)}] (0,0) -- (10,0) node[below,midway] {$b$ units};
\tkzMarkRightAngle (A,C,B);
\tkzMarkRightAngle (C,D,B);
\end{tikzpicture}
\end{document}
Note that tkz-euclide automatically loads tikz.