The other thing is to make sure that you are using the right pump attachment.
As mentioned above - there are two types of valve in common use. Most road bikes and many mountain bikes use Presta valves, the slim metal ones with the gnurled nut at the top. Some mountain bikes and the odd road bike use Shrader valves, the chunkier ones like the ones used on car tyres. The two types require different pump attachments.
As Tim Hall mentions above - some pumps adapt automatically to the type of valve. Mine doesn't - it has two attachments, one for each type of valve. You can see which is which because the Shrader attachment has a little pin in the centre to press in a corresponding part of the Shrader valve.
I showed a friend how to use my track pump to pump up her tyres yesterday. I explained the above, then set her to work. She got the Shrader-valved rear tyre pumped up ok but was struggling with the front. I couldn't understand what the problem was until I looked and discovered that somebody had replaced the original Shrader-valved tube with a Presta-valved one so the correct attachment for the rear was the wrong one for the front!