On Sun, 13 Jul 2014 20:09:20 GMT, schneider wrote:

I am really struggling here with trying to use OSX Frameworks and dub. I want to build a simple app with portaudio and this requires the following frameworks: CoreAudio, AudioUnit, AudioToolbox, CoreServices, and Carbon.

I just seem not to be able to figure out how to pass the required arguments like "-L-framework Carbon" to gcc.

Can anybody enlighten this exhausted coder? ;)

Best
Chris

To pass a framework to DMD do this: dmd main.d -L-framework -LCarbon
To pass to GCC: gcc -framework Carbon
To pass to the linker: ld -framework Carbon

/Jacob Carlborg