Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenAl Libs?

Started by Ichigo Apr 23, 2004 at 5:45 AM 4 replies 4k views
Original Post
Ichigo
Ichigo
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?
Have a nice day ^^
Maega
Maega
How are your lib files situated? Which one is first in the linker line?

alut depends on OpenAL32

OmniBrain
OmniBrain
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...
-----The scheduled downtime is omitted cause of technical problems.
Ichigo
Ichigo
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.


Have a nice day ^^
clayasaurus
clayasaurus
yea with dev-cpp on windows and gcc, it''s possible to link *.a files OmniBrain
OmniBrain
OmniBrain
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)
-----The scheduled downtime is omitted cause of technical problems.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.