You need to provide more info.

Specifically: "the compiler tells me that it can't find what I want it to"... and will have produced a lovely error that tells us exactly what it was after and where it looked.
- Also, we need to know that you're including the right headers in your code. Seeing the relevant bits of your code might help there too.
- Does pacman install allegro development headers as well as the library? I can't tell without having it installed but on most distros they are two separate packages (one that lets you USE Allegro in pre-compiled programs, one that lets you MAKE Allegro programs from source).
- What's your include path generated from pkg-config? What's in that folder? Are the includes you need in there? If not, what does a search for those include files produce (i.e. are they somewhere else)?

All pretty standard questions to ask yourself, really.