core/main.cpp: In function 'void SMC::Exit_Game()':
core/main.cpp:494: error: 'IMG_Quit' was not declared in this scope
I figured smc would run fine without that call, so I removed it. Then I got basically the same error from core/video/video.cpp. smc seemed to compile and run fine with both of those offending lines removed.
My first guess is that it's a namespace issue, but I'll let you figure it out.
So you can easily find these two troublesome lines, here's a patch that comments them both out:
- Code: Select all
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 4f30ff8..5dde1eb 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -486,7 +486,7 @@ void Exit_Game( void )
}
// unload the sdl_image preloaded libraries
- IMG_Quit();
+ // FIXME: This is not defined: IMG_Quit();
SDL_Quit();
}
diff --git a/src/video/video.cpp b/src/video/video.cpp
index ae48a30..e0d99a0 100644
--- a/src/video/video.cpp
+++ b/src/video/video.cpp
@@ -228,7 +228,7 @@ void cVideo :: Init_SDL( void )
}
// preload the sdl_image png library
- IMG_Init( IMG_INIT_PNG );
+ // FIXME: This is not defined: IMG_Init( IMG_INIT_PNG );
SDL_EnableUNICODE( 1 );
// hide by default
(that's against SVN 1623)






