[AD] sound examples need -lstdc++ with mingw?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I tried compiling A5 (static debug build) with dsound enabled in vbox
running XP(SP3), but it only worked after applying the attached patch.
Does this need to be addressed, or should using a different mingw
version or something fix it?

-- 
Elias Pschernig <elias@xxxxxxxxxx>
Index: addons/kcm_audio/CMakeLists.txt
===================================================================
--- addons/kcm_audio/CMakeLists.txt	(revision 11369)
+++ addons/kcm_audio/CMakeLists.txt	(working copy)
@@ -32,6 +32,9 @@
     set(ALLEGRO_CFG_KCM_DSOUND 1)
     list(APPEND AUDIO_SOURCES dsound.cpp)
     list(APPEND AUDIO_LIBRARIES ${DSOUND_LIBRARIES})
+	if(COMPILER_GCC)
+	    list(APPEND AUDIO_LIBRARIES stdc++)
+	endif(COMPILER_GCC)
     include_directories(${DSOUND_INCLUDE_DIR})
 endif(SUPPORT_DSOUND)
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/