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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
Nevermind. I finally figured it out myself. Sorry