Sign in to follow this  
uzipaz

Having problem using SDL_mixer

Recommended Posts

Hi everyone, I have been programming with C++ for awhile but I am new at using third party libraries and tools.
I am trying to learn SDL. I download the latest SDL 1.2 (I'm using runtime and development libraries). The download came with all the necessary header files and library files and I am successfully using them in my programming projects.

Today, I decided to use SDL_mixer to add sound effects in my project. I am following this tutorial http://www.sdltutorials.com/sdl-soundbank
The tutorial states that I need to download SDL_mixer separately. I downloaded the latest binary windows release of the SDL_mixer from the official website of SDL (http://www.libsdl.org/projects/SDL_mixer/) and when I extracted the files, I only find runtime libraries in the folder, there are no include header files there, no development libraries.

However, in the tutorial the author is using "SDL_mixer.h" header and has instructed to link SDL_mixer.lib with the project. However, as I downloaded the library of SDL_mixer, there are no headers or .lib files, only .dll files there.

I tried downloading the source code of SDL_mixer and "SDL_mixer.h" was located there so I pasted in my main SDL include folder but I still can't find the SDL_mixer.lib to link it with the project.

I don't know If I am lost or doing something wrong here.... Please guide me....

Thank you...

Share this post


Link to post
Share on other sites
Yes but it can be used with code blocks too.

This tutorial will help you:
[url="http://lazyfoo.net/SDL_tutorials/lesson03/windows/codeblocks/index.php"]http://lazyfoo.net/SDL_tutorials/lesson03/windows/codeblocks/index.php[/url]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this