Last active
August 29, 2015 14:05
-
-
Save cosmo0920/f67129b79c94e4ae0682 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd example | |
cabal sandbox init | |
cabal install bindings-DSL | |
cabal sandbox add-source ../ | |
cabal install bindings-portaudio -fCoreAudio | |
cabal configure | |
cabal build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./example-portaudio.cabal has been changed. Re-configuring with most recently | |
used options. If this fails, please run configure manually. | |
Resolving dependencies... | |
Configuring example-portaudio-0.0... | |
Building example-portaudio-0.0... | |
Preprocessing executable 'example-portaudio' for example-portaudio-0.0... | |
[1 of 1] Compiling Main ( sine.hs, dist/build/example-portaudio/example-portaudio-tmp/Main.o ) | |
Linking dist/build/example-portaudio/example-portaudio ... | |
Undefined symbols for architecture x86_64: | |
"_PaUtil_AllocateMemory", referenced from: | |
_Pa_Initialize in libHSbindings-portaudio-0.0.a(pa_front.o) | |
"_PaUtil_FreeMemory", referenced from: | |
_Pa_Initialize in libHSbindings-portaudio-0.0.a(pa_front.o) | |
_Pa_Terminate in libHSbindings-portaudio-0.0.a(pa_front.o) | |
"_PaUtil_InitializeClock", referenced from: | |
_Pa_Initialize in libHSbindings-portaudio-0.0.a(pa_front.o) | |
"_Pa_Sleep", referenced from: | |
_r3oN_info in Main.o | |
_s9q7_info in libHSbindings-portaudio-0.0.a(PortAudio.o) | |
_bindingszmportaudiozm0zi0_BindingsziPortAudio_pzqPazuSleep1_closure in libHSbindings-portaudio-0.0.a(PortAudio.o) | |
"_paHostApiInitializers", referenced from: | |
_Pa_Initialize in libHSbindings-portaudio-0.0.a(pa_front.o) | |
ld: symbol(s) not found for architecture x86_64 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why should I use “PaUtil_AllocateMemory” instead of malloc()? | |
http://stackoverflow.com/questions/22616016/why-should-i-use-pautil-allocatememory-instead-of-malloc/23226628#23226628 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment