Thread: OpenAL issues

  1. #1
    Registered User
    Join Date
    Mar 2004

    OpenAL issues

    I'm currently attempting to learn how to use OpenAL. I'm having a problem with the linking. I've included the following files:
    #include <al.h>
    #include <alc.h>
    #include <alu.h>
    #include <alut.h>

    I've made sure that I added the libs and include folders for OpenAL. I can compile the demos that come with OpenAL.

    Anyone have any ideas to help fix my error? So far the only function call I have for OpenAL is alutInit(0, NULL);

    This is my error:
    OpenAL error LNK2019: unresolved external symbol _alutInit referenced in function "public: int __thiscall COpenAL::OpenALInit(void)" (?OpenALInit@COpenAL@@QAEHXZ)

    Any help would be appreciated.

  2. #2
    Registered User
    Join Date
    Aug 2003
    It seems to me that you are not linking with the correct .lib files. If you dont know how to add files to link with please post back with which version of compiler you have (looking at your error I assume it is some version of Visual C++).

  3. #3
    Registered User
    Join Date
    Mar 2004
    Yeah i'm retarded... Just needed to pragma comment the libs... I'm good at overlooking little things like that.. lol...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenAL Programming
    By computerquip in forum Game Programming
    Replies: 7
    Last Post: 07-05-2009, 09:27 AM
  2. hexdump issues
    By daluu in forum C Programming
    Replies: 2
    Last Post: 03-04-2003, 09:01 PM
  3. OpenAL
    By Donnellg in forum Game Programming
    Replies: 11
    Last Post: 11-21-2002, 09:39 PM
  4. OpenAL
    By DavidP in forum A Brief History of
    Replies: 1
    Last Post: 05-31-2002, 06:32 PM
  5. OpenAL
    By DavidP in forum Game Programming
    Replies: 0
    Last Post: 05-24-2002, 03:00 PM