Menu

Trouble linking libs3audio from dll

Help
Ar-Kain
2005-06-04
2012-09-22
  • Ar-Kain

    Ar-Kain - 2005-06-04

    To start off, I know how to properly link library files. That being said, I continue to get unresolved externals for all functions defined in libs3audio.lib. I can access all the functions from libs3decoder.lib and libutil.lib just fine. I'm building a DLL that uses all three library files in Windows XP using MS Visual C++ 2003. To make sure that the problem was only with libs3audio I created a new project combining all three libraries into a single amalgomated one. I still encountered the same problem; only the audio functions couldn't be resolved. Thinking it might be a problem with name mangling I added in these lines to ad..h:
    //At the start of the file

    ifdef __cplusplus

    extern "C" {

    endif

    //At the end

    ifdef __cplusplus

    }

    endif

    This had no effect. Also, I encounter no problems if I make the project a lib instead of a dll, but that is unacceptable for the project. I've been trying to figure this out for hours and I'm really at a loss. If anybody has any ideas, please help me. Thanks in advance.

     
    • Ar-Kain

      Ar-Kain - 2005-06-04

      Nevermind. I finally figured it out myself. Sorry

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.