Advertisement

OpenAL Wont Complile

Started by March 16, 2004 07:35 AM
1 comment, last by Ructions 20 years, 8 months ago
I have installed the SDK of openal and have placed the header files in my project directory. But i still get a complile error telling me that the header files cant be found. I dont understand why. Any help would be greatful. Ructions
What''s the exact error, and what is the exact line you use to include them?

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]
Advertisement
by the way .. that''s not the best way to do it:

first, when you get an SDK, you don''t want to COPY the header files into your project''s directory ...

you don''t want to do stuff like:

#include "openal.h"

and have those files copied into each project that uses it ...

you want to install the SDK to SOMEWHERE, and then ADD THE SDK INCLUDE DIRECTORY to your compilers INCLUDE PATH ... so that when you write this:

#include <openal.h>
(or even)
#include <openal/openal.h>
(depending on which method the SDK needs to be added the path)

it should go through the standard include directories and find the openal.h file for you ... this way their is ONE copy of all the files on the machine ...

hope this gives you a starting point ... BTW, in Visual Studio, close all your projects, then add the SDKs include to the include paths, and the libraries directory to the lib path ... so that you can LINK to openal libraries by names like openal.lib instead of C:\somepath\libs\openal.lib

This topic is closed to new replies.

Advertisement