<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I am going to give this a try. Thanks.<br>Where can I get the pexports and dlltool utilities?<br><br>Google yields:<br>http://www.emmestech.com/software/pexports-0.43/download_pexports.html<br>http://sourceware.org/binutils/<br><br>Are those correct?<br><br>--- On <b>Sat, 12/5/09, john lask <i>&lt;jvlask@hotmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: john lask &lt;jvlask@hotmail.com&gt;<br>Subject: RE: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?<br>To: daniel.is.fischer@web.de, functionallyharmonious@yahoo.com<br>Cc: haskell-cafe@haskell.org<br>Date: Saturday, December 5, 2009, 9:03 PM<br><br><div id="yiv2080319246">

<style><!--
#yiv2080319246 .hmmessage P
{
margin:0px;padding:0px;}
#yiv2080319246 {
font-size:10pt;font-family:Verdana;}
--></style>
<br><br>I don't know whether this will help you but I just downloaded an built<br>the haskell portaudio package ... (I had a windows msvc build of<br>portaudio dll already) the process I used ... ghc 6.10.4, portaudio-19<br><br>make an import lib for ghc from dll:<br>pexports libpa19.dll &gt; libpa19.def<br>dlltool --input-def libpa19.def --output-lib libpa19.a<br><br>edit the .cabal file or use command line flags<br><br>&nbsp; extra-Libraries: pa19<br>&nbsp; extra-lib-dirs: c:\portaudio19\lib<br>&nbsp; include-dirs:&nbsp;&nbsp; c:\portaudio19\include<br><br>&nbsp;runghc setup configure<br><br>make sure you have cpp i.e. the c-preprocessor on your exe path,<br>otherwise you will get<br>'cpp' is not recognized as an internal or external command,<br>operable program or batch file.<br>c2hs.exe: Error during preprocessing custom header file<br><br>runghc setup build<br><br>builds ok ...??<br><br><br>&gt; From: daniel.is.fischer@web.de<br>&gt; To:
 functionallyharmonious@yahoo.com<br>&gt; Subject: Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?<br>&gt; Date: Sun, 6 Dec 2009 02:34:17 +0100<br>&gt; CC: haskell-cafe@haskell.org<br>&gt; <br>&gt; Am Sonntag 06 Dezember 2009 01:49:49 schrieb M Xyz:<br>&gt; <br>&gt; I just had another idea.<br>&gt; <br>&gt; dafis@linux-mkk1:~&gt; c2hs -o memyself.hs memyself.chs<br>&gt; c2hs: does not exist<br>&gt; <br>&gt; it's not that c2hs isn't found or something, c2hs doesn't find Base.chs!<br>&gt; <br>&gt; Try installing from the unpacked sources (cd portaudio; cabal install) or the old-<br>&gt; fashioned way:<br>&gt; <br>&gt; cd portaudio-0.0.1<br>&gt; <br>&gt; ghc --make Setup<br>&gt; <br>&gt; ./Setup configure --help<br>&gt; (choose your options, prefix, profiling, ...)<br>&gt; <br>&gt; ./Setup configure $OPTIONS<br>&gt; ./Setup build<br>&gt; <br>&gt; if all's well,<br>&gt; <br>&gt; ./Setup haddock<br>&gt; ./Setup install<br>&gt; <br>&gt;
 (dies for me with<br>&gt; dist/build/Sound/PortAudio/Base.chs.h:1:23: error: portaudio.h: Datei oder <br>&gt; Verzeichnisnicht gefunden<br>&gt; c2hs: Error during preprocessing custom header file<br>&gt; cabal: Error: some packages failed to install:<br>&gt; portaudio-0.0.1 failed during the building phase. The exception was:<br>&gt; exit: ExitFailure 1<br>&gt; because I don't have portaudio installed)<br>&gt; _______________________________________________<br>&gt; Haskell-Cafe mailing list<br>&gt; Haskell-Cafe@haskell.org<br>&gt; http://www.haskell.org/mailman/listinfo/haskell-cafe<br>                                               <br><hr>Australia's #1 job site <a rel="nofollow" target="_blank" href="http://clk.atdmt.com/NMN/go/157639755/direct/01/">If It Exists, You'll Find it on SEEK</a> 
</div></blockquote></td></tr></table><br>