Archived

This topic is now archived and is closed to further replies.

Ichigo

OpenAl Libs?

Recommended Posts

How many Static Libs is the there to be in OpenAL? I just downloaded the OpenAl DevPack (Dev-C++ 5) and it had two libs in it: "libopenal32.a" and "libalut.a" I''m linking both of them but when I link I get couple of errormessages locking like this: [Linker error] undefined reference to `alcOpenDevice'' [Linker error] undefined reference to `alcCreateContext'' [Linker error] undefined reference to `alcMakeContextCurrent'' I don''t know but my untrained eye''s is telling me I''m missing some lib ocr .c file. Possibly called "libalc32.a" ore something like that. Any ideas?

Share this post


Link to post
Share on other sites
How are your lib files situated? Which one is first in the linker line?

alut depends on OpenAL32

Share this post


Link to post
Share on other sites
somehow that *.a - library makes me think those are libraries for a linux system... you don''t try to use them on a windows system?

also the order of the files shouldn''t be any error source...

Share this post


Link to post
Share on other sites
quote:
Original post by Maega
How are your lib files situated? Which one is first in the linker line?

alut depends on OpenAL32



Actualy, that worked perfectly.
I can''t beleve I didn''t try that (or did I).

The linker options where in the order:
-lopenal32
-lalut
I got linker errors.

But change them around:
-lalut
-lopenal32
And everything works like a charm!
(I feel really stupid now, could I get a hug?)

Thanks a lot OmniBrain!

Oh. And in case anyone else gets this after me I''m Using Dev-C++ 4.9.8.7 and the OpenAl-devpack avalible from the update service.


Share this post


Link to post
Share on other sites
quote:
Original post by clayasaurus
yea with dev-cpp on windows and gcc, it''s possible to link *.a files OmniBrain



Learn a bit new every day... I should try to use gcc on windows one day, too

@Ichigo: No thanks to me, I was sure the order shouldn''t matter. Thanks should go to Maega.

(I should have knew better, even for Java the order matters, and hey! Isn''t it a window-system you develop on? you should not wonder about anything, hehe)

Share this post


Link to post
Share on other sites