I'm studying the tutorial http://www.devmaster...rticles/openal/ but the code downloadable from that page is not working for me.
I've been having trobles with openAL such as lots of errors in locating file and libraries and i've been fighting with alut for ages...but finally i fixed those errors!
Now everything seems working,except for a long list of [Linker error] undefined reference to :
[Linker error] undefined reference to `_imp__alutUnloadWAV'
[Linker error] undefined reference to `_imp__alSourcef'
[Linker error] undefined reference to `_imp__alSourcef'
[Linker error] undefined reference to `_imp__alSourcei'
[Linker error] undefined reference to `_imp__alSource3f'
[Linker error] undefined reference to `_imp__alSource3f'
[Linker error] undefined reference to `_imp__alSourcei'
[Linker error] undefined reference to `_imp__alSourcePlay'
[Linker error] undefined reference to `_imp__alSourceStop'
[Linker error] undefined reference to `_imp__alDeleteSources'
[Linker error] undefined reference to `_imp__alDeleteBuffers'
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status
C:\Documents and Settings\Francesco\Desktop\C++\OpenAL\openaltut\Makefile.win [Build Error] [1.exe] Error 1
can anyone help me understanding what's wrong now?
Thank u very much
alut and various openal issues
Started by stranomavero, Sep 17 2007 02:13 PM
6 replies to this topic
#1
Posted 17 September 2007 - 02:13 PM
#2
Posted 17 September 2007 - 02:55 PM
stranomavero said:
can anyone help me understanding what's wrong now?
Yep. You forgot to link a library. I guess it's name will be alut.lib or something like this. You have to add that thing to the linker settings. How you do this depends on the compiler/linker you use.
Nils
My music: http://myspace.com/planetarchh <-- my music
My stuff: torus.untergrund.net <-- some diy electronic stuff and more.
My stuff: torus.untergrund.net <-- some diy electronic stuff and more.
#3
Posted 17 September 2007 - 03:00 PM
Sorry,i forgot to mention it:i'm using Dev-cpp.
thanks for the advise,now i've fixed all those errors but i have:
[Linker error] undefined reference to `IID_IDirectInput8A'
[Linker error] undefined reference to `DirectInput8Create@20'
[Linker error] undefined reference to `GUID_SysKeyboard'
[Linker error] undefined reference to `c_dfDIKeyboard'
[Linker error] undefined reference to `WinMain@16'
are they referring to a directx library?
which one? i can't find it.
thanks again
thanks for the advise,now i've fixed all those errors but i have:
[Linker error] undefined reference to `IID_IDirectInput8A'
[Linker error] undefined reference to `DirectInput8Create@20'
[Linker error] undefined reference to `GUID_SysKeyboard'
[Linker error] undefined reference to `c_dfDIKeyboard'
[Linker error] undefined reference to `WinMain@16'
are they referring to a directx library?
which one? i can't find it.
thanks again
#5
Posted 18 September 2007 - 10:45 AM
thanks!
it looks like a neverending story...i fixed that problem (thanks to u!)...then i had trouble with glaux.h...fixed that...and now i have new errors:
C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp In function `int LoadGLTextures()':
179 C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp name lookup of `loop1' changed for new ISO `for' scoping
172 C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp using obsolete binding at `loop1'
C:\Documents and Settings\Francesco\Desktop\C++\OpenAL\openaltut\Makefile.win [Build Error] [../../openaltut/main.o] Error 1
it looks like a neverending story...i fixed that problem (thanks to u!)...then i had trouble with glaux.h...fixed that...and now i have new errors:
C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp In function `int LoadGLTextures()':
179 C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp name lookup of `loop1' changed for new ISO `for' scoping
172 C:\Documents and Settings\Francesco\Desktop\C++\openaltut\main.cpp using obsolete binding at `loop1'
C:\Documents and Settings\Francesco\Desktop\C++\OpenAL\openaltut\Makefile.win [Build Error] [../../openaltut/main.o] Error 1
#6
Posted 18 September 2007 - 01:44 PM
The latest ISO standards changed the way the scoping rules for 'for' behaves. You probably have some code like this:
I haven't seen your code, so I may be way off though :)
for(int loop1=0; loop1<something; loop1++)
{
...
}
int bla = loop1; // <-- This is no longer legal, because loop1's scope has ended
If you change it to this:
int loop1;
for(loop1=0; loop1<something; loop1++)
{
...
}
int bla = loop1; // <-- This is now legal, because loop1 is still in the scope
...it should work fine.I haven't seen your code, so I may be way off though :)
"Stupid bug! You go squish now!!" - Homer Simpson
#7
Posted 18 September 2007 - 01:55 PM
have u got any superpowers??? :)
i did what u said and that error now is gone...
but i'm having new link errors! this thing is driving me crazy!!!!
i did what u said and that error now is gone...
but i'm having new link errors! this thing is driving me crazy!!!!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












