Useing some SDL functions in console application

Hello.

I want to make a console application, and i need to use some SDL functions
to get info from a bmp file easily, but when i compile with SDL the standar
output goes to stdout.txt instead of the console output, and when i call
system(“pause”); all i get is the application to stunk. The compiler takes
the app as if a GUI application were.

Please how can i use SDL in a console application.

Sorry for my english. Thanks.