Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Created November 22, 2012 13:02
Show Gist options
  • Save nddrylliog/4131078 to your computer and use it in GitHub Desktop.
Save nddrylliog/4131078 to your computer and use it in GitHub Desktop.
cubeb make output on mingw
$ make
make all-recursive
make[1]: Entering directory `/g/Dev/cubeb'
Making all in docs
make[2]: Entering directory `/g/Dev/cubeb/docs'
echo "*** Warning: Doxygen not found; documentation will not be built."
*** Warning: Doxygen not found; documentation will not be built.
touch doxygen-build.stamp
make[2]: Leaving directory `/g/Dev/cubeb/docs'
make[2]: Entering directory `/g/Dev/cubeb'
CC src/cubeb_winmm.lo
src/cubeb_winmm.c: In function 'cubeb_buffer_thread':
src/cubeb_winmm.c:163:5: warning: implicit declaration of function 'InterlockedPopEntrySList' [-Wimplicit-function-declaration]
src/cubeb_winmm.c:163:18: warning: assignment makes pointer from integer without a cast [enabled by default]
src/cubeb_winmm.c:165:7: warning: implicit declaration of function '_aligned_free' [-Wimplicit-function-declaration]
src/cubeb_winmm.c: In function 'cubeb_buffer_callback':
src/cubeb_winmm.c:186:3: warning: implicit declaration of function '_aligned_malloc' [-Wimplicit-function-declaration]
src/cubeb_winmm.c:186:60: error: 'MEMORY_ALLOCATION_ALIGNMENT' undeclared (first use in this function)
src/cubeb_winmm.c:186:60: note: each undeclared identifier is reported only once for each function it appears in
src/cubeb_winmm.c:189:3: warning: implicit declaration of function 'InterlockedPushEntrySList' [-Wimplicit-function-declaration]
src/cubeb_winmm.c: In function 'calculate_minimum_latency':
src/cubeb_winmm.c:212:3: warning: implicit declaration of function 'VER_SET_CONDITION' [-Wimplicit-function-declaration]
src/cubeb_winmm.c:212:27: error: 'VER_MAJORVERSION' undeclared (first use in this function)
src/cubeb_winmm.c:212:45: error: 'VER_EQUAL' undeclared (first use in this function)
src/cubeb_winmm.c:213:27: error: 'VER_MINORVERSION' undeclared (first use in this function)
src/cubeb_winmm.c: In function 'cubeb_init':
src/cubeb_winmm.c:233:51: error: 'MEMORY_ALLOCATION_ALIGNMENT' undeclared (first use in this function)
src/cubeb_winmm.c:235:3: warning: implicit declaration of function 'InitializeSListHead' [-Wimplicit-function-declaration]
src/cubeb_winmm.c: In function 'cubeb_stream_init':
src/cubeb_winmm.c:376:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
make[2]: *** [src/cubeb_winmm.lo] Error 1
make[2]: Leaving directory `/g/Dev/cubeb'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/g/Dev/cubeb'
make: *** [all] Error 2
@Behrouz-m
Copy link

Behrouz-m commented May 30, 2017

you can use following code for mingw32

#ifndef MEMORY_ALLOCATION_ALIGNMENT
#	define MEMORY_ALLOCATION_ALIGNMENT 8
#endif

reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment