Problem compiling code with SDL_image library

Hello, my first mail here. (Sorry if this thing is already solved or
mentioned by the list, but I tried to use Google to search the pipemail and
the web for this error, and got no results whatsoever)

My name is Vinicius and I’m trying to develop a game with C++ (using G++ 3.4and
4.0, to test their compatibility), SDL and SDL_image.
My problem is that, when I try to compile a C++ source code, and I get the
following error message:

g++ sdl-config --cflags --libs -lSDL_image sprite.cpp

/usr/include/SDL/SDL_image.h:36: error: expected unqualified-id before
string constant
sprite.cpp: In member function ‘int Image::loadFromFile(const char*)’:
sprite.cpp:29: error: ‘IMG_Load’ was not declared in this scope

The line that the compiler told is:

#ifdef __cplusplus
extern “C” {
#endif

This is very bizarre, because the file included before this line is
"begin_code.h" and I’ve never had issues with C++, G++ and SDL and I know
every header includes the file begin_code.h

I’m totally lost here, and I’ve read (or tried to) some g++ docs and found
nothing.

Thanks in advance!–
Vinicius Baggio Fuentes
comp05 // turma B
ICMC-USP