Smpeg and SDL

I have a problem compiling the smpeg and then SDL helper
libraries. When I compile smpeg, I get undefined reference to operator new[](unsigned)',operator delete(void*)’, and ‘_cxa_pure_virtual’. I
found on the Internet a suggestion to use:

make CC=g++

That compiled smpeg, but then GUIlib wouldn't compile. I didn't

same thing (make CC=g++) and that compiled it. Same problem and solution
for SDL_mixer. At that point my SDL libraries are ready.
However, when I compile any program that uses SDL, I get an
error message that I don’t have smpeg and SDL_mixer. A look at config.log
reveals the undefiened references again.
Any idea how to solve this problem?
Thanks in advance.