How to link OpenAL on the command line (OS X)
Asked Answered
K

1

5

I'm trying to compile a project which is using OpenAL on Mac OS X 10.7. If I would be using XCode I could link the OpenAL.framework, but in the directory

/System/Library/Frameworks/OpenAL.framework/

theres no subdirectory called 'Libraries'. So what should I link against?

Kuhn answered 7/8, 2011 at 15:12 Comment(0)
C
8

This is just a generic answer to link frameworks in the Mac, it should work for OpenAL.framework

% gcc -framework OpenAL -o test test.c

Also see this old GCC article

Cinquefoil answered 7/8, 2011 at 15:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.