OpenAL including errors

Nov 30, 2011 at 4:39pm
I've been having trouble including and installing the necessary components for the OpenAL library. I'm running VSE2010, and have placed alut.dll in WINDOWS\System32 and the alut.h file with my other headers. The additional files I have linked to are alut.dll and openal32.dll. After compiling, I get the error:

Error 1 error C1083: Cannot open include file: 'AL/alut.h': No such file or directory

In a few hours I will add additional info. as I am lacking in time as of now. Thanks in advance.
Nov 30, 2011 at 5:29pm
Check your project's include directories to see if it lists the directory your files are in. I think that if you double-click the error on the error console it shows a pop-up with all the directories searched.
Dec 2, 2011 at 5:02pm
I'm not aware of any directories that I need to add, and when I double-click the error in the console, it only refers be the the line: "#include<AL/alut.h>"

To expand upon my last post which was written between classes, I suspect that I might have need of the alut.lib file include in the bin download from: http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx?RootFolder=%2fopenal%2fDownloads%2fALUT&FolderCTID=&View={6A9700C6-7248-4CD2-83F5-268F2C176072}

Unfortunately, I'm new to the concept of how to include larger, downloadable libraries and am not sure where to put it. I know that in the past I've had to rebuild the .lib from files included elsewhere in the download, but I can't find any files with which to do so.

Sorry for my inexperience.
Dec 5, 2011 at 4:46pm
Bump. This problem is preventing me from working.
Dec 5, 2011 at 4:54pm
: Cannot open include file: 'AL/alut.h': No such file or directory


No such file or directory, it says. Well then, you'd better create the missing file or directory.

Put your alut header files in a directory called AL, so that when your compiler goes looking through its include paths for AL/alut.h, it can find it.
Last edited on Dec 5, 2011 at 4:57pm
Dec 5, 2011 at 6:52pm
You put alut.h on your include directory, but included the one on AL/alut.h. Change your include or move your file.
Dec 5, 2011 at 10:21pm
Thanks, that was a pretty bad error on my part, but after doing that, it couldn't find the file 'alc.h'.

Seeing as that file is not in my header, I can assume that I am missing a .lib file, but the .lib included in the bin download mentioned above didn't help. If anyone has worked with OpenAL before and knows how to build one (if necessary,) I would much appreciate some assistance.
Dec 5, 2011 at 11:01pm
You could have all the lib files in the universe and it wouldn't help if you were missing a header file.

I use openAl, and alc.h is in the include directory next to all the other *.h files
Dec 6, 2011 at 4:22am
I'm not sure if I'm missing something really obvious, but I can't find any sort of alc.h is any of the OpenAL downloads. Could you provide me with a link?
Dec 6, 2011 at 10:45am
I'll go looking and see if I can figure out where I got it; I wouldn't be surprised if different versions had different files.

Edit: This implementation contains it.
http://kcat.strangesoft.net/openal.html
Last edited on Dec 6, 2011 at 10:51am
Dec 8, 2011 at 4:58pm
I appreciate all of the help you wonderful people are giving, but the errors keep stacking up. Now I'm getting:
Error 26 error LNK1104: cannot open file 'alut.dll' F:\<path>\LINK
alut.dll is placed in the system32 folder.

Despite what it may seem, I actually am trying to solve this problem on my own before I post here, but I've just been having no luck.
Dec 8, 2011 at 5:19pm
Why is it trying to open a .dll? Shouldn't that be done at runtime?
Topic archived. No new replies allowed.