SDl_mixer and image

Member
Posts: 312
Joined: 2006.10
Post: #1
I want to include those two frameworks in my project. I add the framework, then I use the includes:
Code:
#include "SDL_mixer.h"
"SDL_image.h"
And I get a error saying: no such file

Am I including it wrong?
Quote this message in a reply
Moderator
Posts: 1,562
Joined: 2003.10
Post: #2
I'm not really familiar with SDL_mixer or SDL_image, but you may need to do something like #include "SDL_mixer/SDL_mixer.h" and #include "SDL_image/SDL_image.h". You can also add the directory containing those headers to your header search paths.
Quote this message in a reply
Member
Posts: 111
Joined: 2002.06
Post: #3
To get SDL_mixer code to compile on Mac OS X, I had to include SDL_mixer.h in the following way:

Code:
#include "SDL_mixer/SDL_mixer.h"

SDL_image code compiled fine just by including SDL_image.h.

Mark Szymczyk
http://www.meandmark.com
Quote this message in a reply
Member
Posts: 312
Joined: 2006.10
Post: #4
Thanks, works now Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Installing SDL_image & SDL_mixer bronxbomber92 8 5,910 Oct 14, 2006 09:39 PM
Last Post: szymczyk
  Using SDL_mixer to play ogg sound (not music) effects kordova 3 6,598 Sep 1, 2006 12:29 PM
Last Post: kordova
  SDL_mixer exception at Mix_PlayMusic kordova 2 3,543 Sep 1, 2006 04:09 AM
Last Post: kordova
  SDL/SDL_mixer problems with Xcode poffy 1 3,684 Mar 7, 2006 02:45 AM
Last Post: OneSadCookie
  SDL_mixer crashing on loop - why? sealfin 8 5,973 Jan 26, 2005 09:25 PM
Last Post: aaronsullivan